comparison src/cpuinfo/SDL_cpuinfo.c @ 796:dec19b813b04

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Sat, 31 Jan 2004 06:49:18 +0000
parents 275708f2e838
children b2fda076b02e
comparison
equal deleted inserted replaced
795:275708f2e838 796:dec19b813b04
226 return 0; 226 return 0;
227 } 227 }
228 228
229 static __inline__ int CPU_haveAltiVec() 229 static __inline__ int CPU_haveAltiVec()
230 { 230 {
231 int altivec = 0; 231 volatile int altivec = 0;
232 #ifdef MACOSX 232 #ifdef MACOSX
233 int selectors[2] = { CTL_HW, HW_VECTORUNIT }; 233 int selectors[2] = { CTL_HW, HW_VECTORUNIT };
234 int hasVectorUnit = 0; 234 int hasVectorUnit = 0;
235 size_t length = sizeof(hasVectorUnit); 235 size_t length = sizeof(hasVectorUnit);
236 int error = sysctl(selectors, 2, &hasVectorUnit, &length, NULL, 0); 236 int error = sysctl(selectors, 2, &hasVectorUnit, &length, NULL, 0);