Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Hardware CPU Detection?

SephirothSephiroth Fayetteville, NC, USAPosts: 1,035Member
How would I detect whether a user's processor is an AMD or an Intel? I ask because I am starting to learn the extras (MMX, SSE, and SSE2 now, and 3DNow later) and depending on what chip the user has, I'll know which instructions to test for.

-[italic][b][red]S[/red][purple]e[/purple][blue]p[/blue][green]h[/green][red]i[/red][purple]r[/purple][blue]o[/blue][green]t[/green][red]h[/red][/b][/italic]

Comments

  • AsmGuru62AsmGuru62 Posts: 6,519Member
    : How would I detect whether a user's processor is an AMD or an Intel? I ask because I am starting to learn the extras (MMX, SSE, and SSE2 now, and 3DNow later) and depending on what chip the user has, I'll know which instructions to test for.
    :
    : -[italic][b][red]S[/red][purple]e[/purple][blue]p[/blue][green]h[/green][red]i[/red][purple]r[/purple][blue]o[/blue][green]t[/green][red]h[/red][/b][/italic]
    :
    [blue]Try this:

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/getsysteminfo.asp

    Did not use it myself, but from the description sounds like it can detect the CPU type.[/blue]
  • Johnny13Johnny13 Posts: 128Member
    What's wrong with CPUID? it does no doubt return the brand.[code]Input OutPut
    EAX=0 EBX,EDX,ECX 12 chars ID string containing manufacturer
    ('GenuineIntel', 'UMC UMC UMC ',
    'AuthenticAMD', 'CyrixInstead','NexGenDriven')[/code]
Sign In or Register to comment.