comparison test/testplatform.c @ 5123:87f452305db4

Added CPU cache line size to the test output.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 27 Jan 2011 20:49:07 -0800
parents 8e5186a99af4
children 0ec550f04bbc
comparison
equal deleted inserted replaced
5122:b3f075368b1f 5123:87f452305db4
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_GetCPUCacheLineCount());
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",