*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Fri, 24 Feb 2006 10:23:49 +0000
changeset 1426ef9a9064bff2
parent 1425 aea151eb97b8
child 1427 5f5a74d29d18
*** empty log message ***
include/SDL_cpuinfo.h
src/cpuinfo/SDL_cpuinfo.c
     1.1 --- a/include/SDL_cpuinfo.h	Fri Feb 24 09:58:03 2006 +0000
     1.2 +++ b/include/SDL_cpuinfo.h	Fri Feb 24 10:23:49 2006 +0000
     1.3 @@ -36,35 +36,35 @@
     1.4  
     1.5  /* This function returns true if the CPU has the RDTSC instruction
     1.6   */
     1.7 -extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC();
     1.8 +extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void);
     1.9  
    1.10  /* This function returns true if the CPU has MMX features
    1.11   */
    1.12 -extern DECLSPEC SDL_bool SDLCALL SDL_HasMMX();
    1.13 +extern DECLSPEC SDL_bool SDLCALL SDL_HasMMX(void);
    1.14  
    1.15  /* This function returns true if the CPU has MMX Ext. features
    1.16   */
    1.17 -extern DECLSPEC SDL_bool SDLCALL SDL_HasMMXExt();
    1.18 +extern DECLSPEC SDL_bool SDLCALL SDL_HasMMXExt(void);
    1.19  
    1.20  /* This function returns true if the CPU has 3DNow features
    1.21   */
    1.22 -extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNow();
    1.23 +extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNow(void);
    1.24  
    1.25  /* This function returns true if the CPU has 3DNow! Ext. features
    1.26   */
    1.27 -extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNowExt();
    1.28 +extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNowExt(void);
    1.29  
    1.30  /* This function returns true if the CPU has SSE features
    1.31   */
    1.32 -extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE();
    1.33 +extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE(void);
    1.34  
    1.35  /* This function returns true if the CPU has SSE2 features
    1.36   */
    1.37 -extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE2();
    1.38 +extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE2(void);
    1.39  
    1.40  /* This function returns true if the CPU has AltiVec features
    1.41   */
    1.42 -extern DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec();
    1.43 +extern DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec(void);
    1.44  
    1.45  /* Ends C function definitions when using C++ */
    1.46  #ifdef __cplusplus
     2.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Fri Feb 24 09:58:03 2006 +0000
     2.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Fri Feb 24 10:23:49 2006 +0000
     2.3 @@ -55,7 +55,7 @@
     2.4  }
     2.5  #endif /* HAVE_SETJMP */
     2.6  
     2.7 -static __inline__ int CPU_haveCPUID()
     2.8 +static __inline__ int CPU_haveCPUID(void)
     2.9  {
    2.10  	int has_CPUID = 0;
    2.11  #if defined(__GNUC__) && defined(i386)
    2.12 @@ -145,7 +145,7 @@
    2.13  	return has_CPUID;
    2.14  }
    2.15  
    2.16 -static __inline__ int CPU_getCPUIDFeatures()
    2.17 +static __inline__ int CPU_getCPUIDFeatures(void)
    2.18  {
    2.19  	int features = 0;
    2.20  #if defined(__GNUC__) && ( defined(i386) || defined(__x86_64__) )
    2.21 @@ -198,7 +198,7 @@
    2.22  	return features;
    2.23  }
    2.24  
    2.25 -static __inline__ int CPU_getCPUIDFeaturesExt()
    2.26 +static __inline__ int CPU_getCPUIDFeaturesExt(void)
    2.27  {
    2.28  	int features = 0;
    2.29  #if defined(__GNUC__) && (defined(i386) || defined (__x86_64__) )
    2.30 @@ -249,7 +249,7 @@
    2.31  	return features;
    2.32  }
    2.33  
    2.34 -static __inline__ int CPU_haveRDTSC()
    2.35 +static __inline__ int CPU_haveRDTSC(void)
    2.36  {
    2.37  	if ( CPU_haveCPUID() ) {
    2.38  		return (CPU_getCPUIDFeatures() & 0x00000010);
    2.39 @@ -257,7 +257,7 @@
    2.40  	return 0;
    2.41  }
    2.42  
    2.43 -static __inline__ int CPU_haveMMX()
    2.44 +static __inline__ int CPU_haveMMX(void)
    2.45  {
    2.46  	if ( CPU_haveCPUID() ) {
    2.47  		return (CPU_getCPUIDFeatures() & 0x00800000);
    2.48 @@ -265,7 +265,7 @@
    2.49  	return 0;
    2.50  }
    2.51  
    2.52 -static __inline__ int CPU_haveMMXExt()
    2.53 +static __inline__ int CPU_haveMMXExt(void)
    2.54  {
    2.55  	if ( CPU_haveCPUID() ) {
    2.56  		return (CPU_getCPUIDFeaturesExt() & 0x00400000);
    2.57 @@ -273,7 +273,7 @@
    2.58  	return 0;
    2.59  }
    2.60  
    2.61 -static __inline__ int CPU_have3DNow()
    2.62 +static __inline__ int CPU_have3DNow(void)
    2.63  {
    2.64  	if ( CPU_haveCPUID() ) {
    2.65  		return (CPU_getCPUIDFeaturesExt() & 0x80000000);
    2.66 @@ -281,7 +281,7 @@
    2.67  	return 0;
    2.68  }
    2.69  
    2.70 -static __inline__ int CPU_have3DNowExt()
    2.71 +static __inline__ int CPU_have3DNowExt(void)
    2.72  {
    2.73  	if ( CPU_haveCPUID() ) {
    2.74  		return (CPU_getCPUIDFeaturesExt() & 0x40000000);
    2.75 @@ -289,7 +289,7 @@
    2.76  	return 0;
    2.77  }
    2.78  
    2.79 -static __inline__ int CPU_haveSSE()
    2.80 +static __inline__ int CPU_haveSSE(void)
    2.81  {
    2.82  	if ( CPU_haveCPUID() ) {
    2.83  		return (CPU_getCPUIDFeatures() & 0x02000000);
    2.84 @@ -297,7 +297,7 @@
    2.85  	return 0;
    2.86  }
    2.87  
    2.88 -static __inline__ int CPU_haveSSE2()
    2.89 +static __inline__ int CPU_haveSSE2(void)
    2.90  {
    2.91  	if ( CPU_haveCPUID() ) {
    2.92  		return (CPU_getCPUIDFeatures() & 0x04000000);
    2.93 @@ -305,7 +305,7 @@
    2.94  	return 0;
    2.95  }
    2.96  
    2.97 -static __inline__ int CPU_haveAltiVec()
    2.98 +static __inline__ int CPU_haveAltiVec(void)
    2.99  {
   2.100  	volatile int altivec = 0;
   2.101  #ifdef __MACOSX__
   2.102 @@ -332,7 +332,7 @@
   2.103  
   2.104  static Uint32 SDL_CPUFeatures = 0xFFFFFFFF;
   2.105  
   2.106 -static Uint32 SDL_GetCPUFeatures()
   2.107 +static Uint32 SDL_GetCPUFeatures(void)
   2.108  {
   2.109  	if ( SDL_CPUFeatures == 0xFFFFFFFF ) {
   2.110  		SDL_CPUFeatures = 0;
   2.111 @@ -364,7 +364,7 @@
   2.112  	return SDL_CPUFeatures;
   2.113  }
   2.114  
   2.115 -SDL_bool SDL_HasRDTSC()
   2.116 +SDL_bool SDL_HasRDTSC(void)
   2.117  {
   2.118  	if ( SDL_GetCPUFeatures() & CPU_HAS_RDTSC ) {
   2.119  		return SDL_TRUE;
   2.120 @@ -372,7 +372,7 @@
   2.121  	return SDL_FALSE;
   2.122  }
   2.123  
   2.124 -SDL_bool SDL_HasMMX()
   2.125 +SDL_bool SDL_HasMMX(void)
   2.126  {
   2.127  	if ( SDL_GetCPUFeatures() & CPU_HAS_MMX ) {
   2.128  		return SDL_TRUE;
   2.129 @@ -380,7 +380,7 @@
   2.130  	return SDL_FALSE;
   2.131  }
   2.132  
   2.133 -SDL_bool SDL_HasMMXExt()
   2.134 +SDL_bool SDL_HasMMXExt(void)
   2.135  {
   2.136  	if ( SDL_GetCPUFeatures() & CPU_HAS_MMXEXT ) {
   2.137  		return SDL_TRUE;
   2.138 @@ -388,7 +388,7 @@
   2.139  	return SDL_FALSE;
   2.140  }
   2.141  
   2.142 -SDL_bool SDL_Has3DNow()
   2.143 +SDL_bool SDL_Has3DNow(void)
   2.144  {
   2.145  	if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOW ) {
   2.146  		return SDL_TRUE;
   2.147 @@ -396,7 +396,7 @@
   2.148  	return SDL_FALSE;
   2.149  }
   2.150  
   2.151 -SDL_bool SDL_Has3DNowExt()
   2.152 +SDL_bool SDL_Has3DNowExt(void)
   2.153  {
   2.154  	if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOWEXT ) {
   2.155  		return SDL_TRUE;
   2.156 @@ -404,7 +404,7 @@
   2.157  	return SDL_FALSE;
   2.158  }
   2.159  
   2.160 -SDL_bool SDL_HasSSE()
   2.161 +SDL_bool SDL_HasSSE(void)
   2.162  {
   2.163  	if ( SDL_GetCPUFeatures() & CPU_HAS_SSE ) {
   2.164  		return SDL_TRUE;
   2.165 @@ -412,7 +412,7 @@
   2.166  	return SDL_FALSE;
   2.167  }
   2.168  
   2.169 -SDL_bool SDL_HasSSE2()
   2.170 +SDL_bool SDL_HasSSE2(void)
   2.171  {
   2.172  	if ( SDL_GetCPUFeatures() & CPU_HAS_SSE2 ) {
   2.173  		return SDL_TRUE;
   2.174 @@ -420,7 +420,7 @@
   2.175  	return SDL_FALSE;
   2.176  }
   2.177  
   2.178 -SDL_bool SDL_HasAltiVec()
   2.179 +SDL_bool SDL_HasAltiVec(void)
   2.180  {
   2.181  	if ( SDL_GetCPUFeatures() & CPU_HAS_ALTIVEC ) {
   2.182  		return SDL_TRUE;