[AD] CPU Detection.

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Hi,
the cpu detection is wrong.
 
Only Pentiums X have SSE with this detection rutine, but this is wrong. Some AMD and others machines have a MMX+ extension that is equivalent to SSE. My Duron supports MMX+ and if I enable SSE (out of Allegro) they use the SSE routines. Example: masked_blit16 SSE scores 9600 and masked_blit16 MMX scores 8600, this is a great improvement and others procesors can use this feature.
 
we have to rewrite the cpu detection and why not add some extra information of CPUs as name, L1/L2 size, speed and others.
 
Another thing
    cpu_3dnow=2 is 3DNow!+ or Extended 3DNow! not 3DNow! (test.c bug)
    cpu_sse=1 is SSE/MMX+ (with new detection rutine if you like)
 
I've working in a small program to detect CPU features and can port to Allegro.
 
What do you think?
 
 
Sorry for my english.
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/