Mercurial > sdl-ios-xcode
comparison test/testplatform.c @ 5264:6a65c1fc07af
Updated CPU detection code for SSE3 and SSE4 and removed obsolete 3DNow! and Altivec support.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 11 Feb 2011 14:51:04 -0800 |
parents | 0ec550f04bbc |
children | e1122f31fec5 |
comparison
equal
deleted
inserted
replaced
5263:f26314c20071 | 5264:6a65c1fc07af |
---|---|
141 if (verbose) { | 141 if (verbose) { |
142 printf("CPU count: %d\n", SDL_GetCPUCount()); | 142 printf("CPU count: %d\n", SDL_GetCPUCount()); |
143 printf("CPU cache line size: %d\n", SDL_GetCPUCacheLineSize()); | 143 printf("CPU cache line size: %d\n", SDL_GetCPUCacheLineSize()); |
144 printf("RDTSC %s\n", SDL_HasRDTSC()? "detected" : "not detected"); | 144 printf("RDTSC %s\n", SDL_HasRDTSC()? "detected" : "not detected"); |
145 printf("MMX %s\n", SDL_HasMMX()? "detected" : "not detected"); | 145 printf("MMX %s\n", SDL_HasMMX()? "detected" : "not detected"); |
146 printf("MMX Ext %s\n", SDL_HasMMXExt()? "detected" : "not detected"); | |
147 printf("3DNow %s\n", SDL_Has3DNow()? "detected" : "not detected"); | |
148 printf("3DNow Ext %s\n", | |
149 SDL_Has3DNowExt()? "detected" : "not detected"); | |
150 printf("SSE %s\n", SDL_HasSSE()? "detected" : "not detected"); | 146 printf("SSE %s\n", SDL_HasSSE()? "detected" : "not detected"); |
151 printf("SSE2 %s\n", SDL_HasSSE2()? "detected" : "not detected"); | 147 printf("SSE2 %s\n", SDL_HasSSE2()? "detected" : "not detected"); |
152 printf("AltiVec %s\n", SDL_HasAltiVec()? "detected" : "not detected"); | 148 printf("SSE3 %s\n", SDL_HasSSE3()? "detected" : "not detected"); |
149 printf("SSE4 %s\n", SDL_HasSSE4()? "detected" : "not detected"); | |
153 } | 150 } |
154 return (0); | 151 return (0); |
155 } | 152 } |
156 | 153 |
157 int | 154 int |