Mercurial > sdl-ios-xcode
comparison test/testplatform.c @ 5131:2c500f37abcf
merged: might need to check main.c in the iOS template to make sure no changes were abandoned.
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Tue, 01 Feb 2011 00:37:02 -0800 |
parents | 0ec550f04bbc |
children | 6a65c1fc07af |
comparison
equal
deleted
inserted
replaced
5078:067973aec4d8 | 5131:2c500f37abcf |
---|---|
138 int | 138 int |
139 TestCPUInfo(SDL_bool verbose) | 139 TestCPUInfo(SDL_bool verbose) |
140 { | 140 { |
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("RDTSC %s\n", SDL_HasRDTSC()? "detected" : "not detected"); | 144 printf("RDTSC %s\n", SDL_HasRDTSC()? "detected" : "not detected"); |
144 printf("MMX %s\n", SDL_HasMMX()? "detected" : "not detected"); | 145 printf("MMX %s\n", SDL_HasMMX()? "detected" : "not detected"); |
145 printf("MMX Ext %s\n", SDL_HasMMXExt()? "detected" : "not detected"); | 146 printf("MMX Ext %s\n", SDL_HasMMXExt()? "detected" : "not detected"); |
146 printf("3DNow %s\n", SDL_Has3DNow()? "detected" : "not detected"); | 147 printf("3DNow %s\n", SDL_Has3DNow()? "detected" : "not detected"); |
147 printf("3DNow Ext %s\n", | 148 printf("3DNow Ext %s\n", |
166 #if 0 /* enable this to test assertion failures. */ | 167 #if 0 /* enable this to test assertion failures. */ |
167 SDL_assert_release(1 == 2); | 168 SDL_assert_release(1 == 2); |
168 SDL_assert_release(5 < 4); | 169 SDL_assert_release(5 < 4); |
169 SDL_assert_release(0 && "This is a test"); | 170 SDL_assert_release(0 && "This is a test"); |
170 #endif | 171 #endif |
171 SDL_assert_release(0 && "This is a test"); | |
172 | 172 |
173 return (0); | 173 return (0); |
174 } | 174 } |
175 | 175 |
176 int | 176 int |