Re: CPU Detection
- Posted by Pete Eberlein <xseal at HARBORSIDE.COM> Sep 16, 1999
- 528 views
Jeff asks: >Is there any way to detect SSE? Yup, it's bit 25 in EDX from CPUID with EAX = 1 add the variable and the line: has_SSE = and_bits(EDX, #02000000) != 0 >Also, are you going to add MMX/3DNow/SSE instructions to asm.e? MMX - yes 3DNow - maybe SSE - unlikely, but if you can convince me to... >That would be really neat (though I currently can >only use MMX, unfortunaty). I've tried using NASM to generate the MMX >opcodes, but it seems to use some different segmentation or something >from Euphoria (I don't know too much about segments, except that they >seem like a pain), and it doesn't work. > >Jeffrey Fielding >JJProg at cyberbury.net >http://members.tripod.com/~JJProg/ I have an AMD K6-2 3DNow at home which supports MMX and 3DNow, and an Intel P3 Xeon at work which supports MMX and SSE. Looks like I've got it covered, now all I have to do is code the instructions into asm.e. Later, _______ ______ _______ ______ [ _ \[ _ ][ _ _ ][ _ ] [/| [_] |[/| [_\][/ | | \][/| [_\] | ___/ | _] | | | _] [\| [/] [\| [_/] [\| |/] [\| [_/] [_____] [______] [_____] [______] xseal at harborside.com ICQ:13466657 http://www.harborside.com/home/x/xseal/euphoria/