ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

int main ( void  )

Definition at line 12 of file testcpu.c.

{
    int family;
    struct cpuflags flags;
    if(!getcpuflags(&flags)){ printf("CPU won't do cpuid (some old i386 or i486)\n"); return 0; }
    family = (flags.id & 0xf00)>>8;
    printf("family: %i\n", family);
    printf("stdcpuflags:  0x%08x\n", flags.std);
    printf("std2cpuflags: 0x%08x\n", flags.std2);
    printf("extcpuflags:  0x%08x\n", flags.ext);
    if(cpu_i586(flags))
    {
        printf("A i586 or better cpu with:");
        if(cpu_mmx(flags)) printf(" mmx");
        if(cpu_3dnow(flags)) printf(" 3dnow");
        if(cpu_3dnowext(flags)) printf(" 3dnowext");
        if(cpu_sse(flags)) printf(" sse");
        if(cpu_sse2(flags)) printf(" sse2");
        if(cpu_sse3(flags)) printf(" sse3");
        printf("\n");
    }
    else printf("I guess you have some i486\n");
    return 0;
}

Generated on Thu May 24 2012 06:01:22 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.