src/cpuinfo/SDL_cpuinfo.c
changeset 796 dec19b813b04
parent 795 275708f2e838
child 804 b2fda076b02e
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);