how to use __cpuid intrinsic

  • Follow


Hi,
    I need to port win32 app. on AMD64 for which I need
to remove inline assembly(not supported on 64-bit) using
intrinsic  function. Inline assembly involves set of "mov" instructions
to detect the processor type using CPUID instruction.  Here is the
inline assembly

mov eax, 0x80000000
CPUID
mov value, eax.

i am using intrinsic function void __cpuid(
   int* CPUInfo,
   int InfoType
);

whihc requires second param to be infotype. So, Should I give
0x80000000 as the value of Infotype???

Can anyone tell me what should be the equivalent code for above
mentioned inline assembly using __cpuid intrinsic.

thanks
xyz

0
Reply spamtrap2 (1628) 3/23/2005 6:41:56 PM


0 Replies
349 Views

(page loaded in 0.031 seconds)

Similiar Articles:













7/23/2012 2:04:45 AM


Reply: