RE: [AD] CPU info changes |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
How about:
struct CPUCaps;
int GetCPUCount();
struct CPUCaps *GetCPUCaps(int); // 0 for single CPU machines
void DestroyCPUCaps(struct CPUCaps*);
const char *GetCPUDescription(struct CPUCaps*);
This way, one can still get a "standardized presentation" string
that can be displayed, and use the structure to test for what
functions to call (SSE, MMX, 3DNow...)
--
Vincent Penquerc'h
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |