Detecting Opteron CPU features

I can now get SDL_cpuinfo.c to detect the AMD Opteron’s RDTSC, MMX, MMXEXT,
3DNOW, 3DNOWEXT, SSE, and SSE2 instruction set extensions under Linux. It
took one #ifdef’ed block of new asm code to account for the 64-bit flags
register, but the other two blocks worked fine without modification, just
needed to modify the #ifdef’s a bit.

I’ve attached the .diff between CVS.

Tyler Montbriand
-------------- next part --------------
A non-text attachment was scrubbed…
Name: SDL_cpuinfo.diff
Type: text/x-diff
Size: 1439 bytes
Desc: not available

Thanks! Added to CVS.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment