[iortcw] 42/152: All: Sys_GetProcessorFeatures() didn't check for 3DNow! or Altivec

Simon McVittie smcv at debian.org
Fri Sep 8 10:39:56 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.5a
in repository iortcw.

commit 3cb5ba3f3c57759ca1fc04ed301e18255ea9af0f
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Sun Mar 27 18:22:13 2016 -0400

    All: Sys_GetProcessorFeatures() didn't check for 3DNow! or Altivec
---
 MP/code/sys/sys_main.c | 10 ++++++----
 SP/code/sys/sys_main.c | 10 ++++++----
 2 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/MP/code/sys/sys_main.c b/MP/code/sys/sys_main.c
index 78b73d9..2e537d9 100644
--- a/MP/code/sys/sys_main.c
+++ b/MP/code/sys/sys_main.c
@@ -274,10 +274,12 @@ cpuFeatures_t Sys_GetProcessorFeatures( void )
 	cpuFeatures_t features = 0;
 
 #ifndef DEDICATED
-	if( SDL_HasRDTSC( ) )    features |= CF_RDTSC;
-	if( SDL_HasMMX( ) )      features |= CF_MMX;
-	if( SDL_HasSSE( ) )      features |= CF_SSE;
-	if( SDL_HasSSE2( ) )     features |= CF_SSE2;
+	if( SDL_HasRDTSC( ) )	features |= CF_RDTSC;
+	if( SDL_Has3DNow( ) )	features |= CF_3DNOW;
+	if( SDL_HasMMX( ) )	features |= CF_MMX;
+	if( SDL_HasSSE( ) )	features |= CF_SSE;
+	if( SDL_HasSSE2( ) )	features |= CF_SSE2;
+	if( SDL_HasAltiVec( ) )	features |= CF_ALTIVEC;
 #endif
 
 	return features;
diff --git a/SP/code/sys/sys_main.c b/SP/code/sys/sys_main.c
index f665b0d..ef6d60f 100644
--- a/SP/code/sys/sys_main.c
+++ b/SP/code/sys/sys_main.c
@@ -274,10 +274,12 @@ cpuFeatures_t Sys_GetProcessorFeatures( void )
 	cpuFeatures_t features = 0;
 
 #ifndef DEDICATED
-	if( SDL_HasRDTSC( ) )    features |= CF_RDTSC;
-	if( SDL_HasMMX( ) )      features |= CF_MMX;
-	if( SDL_HasSSE( ) )      features |= CF_SSE;
-	if( SDL_HasSSE2( ) )     features |= CF_SSE2;
+	if( SDL_HasRDTSC( ) )	features |= CF_RDTSC;
+	if( SDL_Has3DNow( ) )	features |= CF_3DNOW;
+	if( SDL_HasMMX( ) )	features |= CF_MMX;
+	if( SDL_HasSSE( ) )	features |= CF_SSE;
+	if( SDL_HasSSE2( ) )	features |= CF_SSE2;
+	if( SDL_HasAltiVec( ) )	features |= CF_ALTIVEC;
 #endif
 
 	return features;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list