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.

Cheers,
Tyler Montbriand
-------------- next part --------------
A non-text attachment was scrubbed…
Name: SDL_cpuinfo.diff
Type: text/x-diff
Size: 1439 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040330/311b2c0b/attachment.diff

Thanks! Added to CVS.

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