src/cpuinfo/SDL_cpuinfo.c
changeset 1426 ef9a9064bff2
parent 1402 d910939febfa
child 1442 e3242177fe4a
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Fri Feb 24 09:58:03 2006 +0000
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Fri Feb 24 10:23:49 2006 +0000
     1.3 @@ -55,7 +55,7 @@
     1.4  }
     1.5  #endif /* HAVE_SETJMP */
     1.6  
     1.7 -static __inline__ int CPU_haveCPUID()
     1.8 +static __inline__ int CPU_haveCPUID(void)
     1.9  {
    1.10  	int has_CPUID = 0;
    1.11  #if defined(__GNUC__) && defined(i386)
    1.12 @@ -145,7 +145,7 @@
    1.13  	return has_CPUID;
    1.14  }
    1.15  
    1.16 -static __inline__ int CPU_getCPUIDFeatures()
    1.17 +static __inline__ int CPU_getCPUIDFeatures(void)
    1.18  {
    1.19  	int features = 0;
    1.20  #if defined(__GNUC__) && ( defined(i386) || defined(__x86_64__) )
    1.21 @@ -198,7 +198,7 @@
    1.22  	return features;
    1.23  }
    1.24  
    1.25 -static __inline__ int CPU_getCPUIDFeaturesExt()
    1.26 +static __inline__ int CPU_getCPUIDFeaturesExt(void)
    1.27  {
    1.28  	int features = 0;
    1.29  #if defined(__GNUC__) && (defined(i386) || defined (__x86_64__) )
    1.30 @@ -249,7 +249,7 @@
    1.31  	return features;
    1.32  }
    1.33  
    1.34 -static __inline__ int CPU_haveRDTSC()
    1.35 +static __inline__ int CPU_haveRDTSC(void)
    1.36  {
    1.37  	if ( CPU_haveCPUID() ) {
    1.38  		return (CPU_getCPUIDFeatures() & 0x00000010);
    1.39 @@ -257,7 +257,7 @@
    1.40  	return 0;
    1.41  }
    1.42  
    1.43 -static __inline__ int CPU_haveMMX()
    1.44 +static __inline__ int CPU_haveMMX(void)
    1.45  {
    1.46  	if ( CPU_haveCPUID() ) {
    1.47  		return (CPU_getCPUIDFeatures() & 0x00800000);
    1.48 @@ -265,7 +265,7 @@
    1.49  	return 0;
    1.50  }
    1.51  
    1.52 -static __inline__ int CPU_haveMMXExt()
    1.53 +static __inline__ int CPU_haveMMXExt(void)
    1.54  {
    1.55  	if ( CPU_haveCPUID() ) {
    1.56  		return (CPU_getCPUIDFeaturesExt() & 0x00400000);
    1.57 @@ -273,7 +273,7 @@
    1.58  	return 0;
    1.59  }
    1.60  
    1.61 -static __inline__ int CPU_have3DNow()
    1.62 +static __inline__ int CPU_have3DNow(void)
    1.63  {
    1.64  	if ( CPU_haveCPUID() ) {
    1.65  		return (CPU_getCPUIDFeaturesExt() & 0x80000000);
    1.66 @@ -281,7 +281,7 @@
    1.67  	return 0;
    1.68  }
    1.69  
    1.70 -static __inline__ int CPU_have3DNowExt()
    1.71 +static __inline__ int CPU_have3DNowExt(void)
    1.72  {
    1.73  	if ( CPU_haveCPUID() ) {
    1.74  		return (CPU_getCPUIDFeaturesExt() & 0x40000000);
    1.75 @@ -289,7 +289,7 @@
    1.76  	return 0;
    1.77  }
    1.78  
    1.79 -static __inline__ int CPU_haveSSE()
    1.80 +static __inline__ int CPU_haveSSE(void)
    1.81  {
    1.82  	if ( CPU_haveCPUID() ) {
    1.83  		return (CPU_getCPUIDFeatures() & 0x02000000);
    1.84 @@ -297,7 +297,7 @@
    1.85  	return 0;
    1.86  }
    1.87  
    1.88 -static __inline__ int CPU_haveSSE2()
    1.89 +static __inline__ int CPU_haveSSE2(void)
    1.90  {
    1.91  	if ( CPU_haveCPUID() ) {
    1.92  		return (CPU_getCPUIDFeatures() & 0x04000000);
    1.93 @@ -305,7 +305,7 @@
    1.94  	return 0;
    1.95  }
    1.96  
    1.97 -static __inline__ int CPU_haveAltiVec()
    1.98 +static __inline__ int CPU_haveAltiVec(void)
    1.99  {
   1.100  	volatile int altivec = 0;
   1.101  #ifdef __MACOSX__
   1.102 @@ -332,7 +332,7 @@
   1.103  
   1.104  static Uint32 SDL_CPUFeatures = 0xFFFFFFFF;
   1.105  
   1.106 -static Uint32 SDL_GetCPUFeatures()
   1.107 +static Uint32 SDL_GetCPUFeatures(void)
   1.108  {
   1.109  	if ( SDL_CPUFeatures == 0xFFFFFFFF ) {
   1.110  		SDL_CPUFeatures = 0;
   1.111 @@ -364,7 +364,7 @@
   1.112  	return SDL_CPUFeatures;
   1.113  }
   1.114  
   1.115 -SDL_bool SDL_HasRDTSC()
   1.116 +SDL_bool SDL_HasRDTSC(void)
   1.117  {
   1.118  	if ( SDL_GetCPUFeatures() & CPU_HAS_RDTSC ) {
   1.119  		return SDL_TRUE;
   1.120 @@ -372,7 +372,7 @@
   1.121  	return SDL_FALSE;
   1.122  }
   1.123  
   1.124 -SDL_bool SDL_HasMMX()
   1.125 +SDL_bool SDL_HasMMX(void)
   1.126  {
   1.127  	if ( SDL_GetCPUFeatures() & CPU_HAS_MMX ) {
   1.128  		return SDL_TRUE;
   1.129 @@ -380,7 +380,7 @@
   1.130  	return SDL_FALSE;
   1.131  }
   1.132  
   1.133 -SDL_bool SDL_HasMMXExt()
   1.134 +SDL_bool SDL_HasMMXExt(void)
   1.135  {
   1.136  	if ( SDL_GetCPUFeatures() & CPU_HAS_MMXEXT ) {
   1.137  		return SDL_TRUE;
   1.138 @@ -388,7 +388,7 @@
   1.139  	return SDL_FALSE;
   1.140  }
   1.141  
   1.142 -SDL_bool SDL_Has3DNow()
   1.143 +SDL_bool SDL_Has3DNow(void)
   1.144  {
   1.145  	if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOW ) {
   1.146  		return SDL_TRUE;
   1.147 @@ -396,7 +396,7 @@
   1.148  	return SDL_FALSE;
   1.149  }
   1.150  
   1.151 -SDL_bool SDL_Has3DNowExt()
   1.152 +SDL_bool SDL_Has3DNowExt(void)
   1.153  {
   1.154  	if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOWEXT ) {
   1.155  		return SDL_TRUE;
   1.156 @@ -404,7 +404,7 @@
   1.157  	return SDL_FALSE;
   1.158  }
   1.159  
   1.160 -SDL_bool SDL_HasSSE()
   1.161 +SDL_bool SDL_HasSSE(void)
   1.162  {
   1.163  	if ( SDL_GetCPUFeatures() & CPU_HAS_SSE ) {
   1.164  		return SDL_TRUE;
   1.165 @@ -412,7 +412,7 @@
   1.166  	return SDL_FALSE;
   1.167  }
   1.168  
   1.169 -SDL_bool SDL_HasSSE2()
   1.170 +SDL_bool SDL_HasSSE2(void)
   1.171  {
   1.172  	if ( SDL_GetCPUFeatures() & CPU_HAS_SSE2 ) {
   1.173  		return SDL_TRUE;
   1.174 @@ -420,7 +420,7 @@
   1.175  	return SDL_FALSE;
   1.176  }
   1.177  
   1.178 -SDL_bool SDL_HasAltiVec()
   1.179 +SDL_bool SDL_HasAltiVec(void)
   1.180  {
   1.181  	if ( SDL_GetCPUFeatures() & CPU_HAS_ALTIVEC ) {
   1.182  		return SDL_TRUE;