Ignore:
Timestamp:
May 11, 2010, 10:31:23 AM (9 years ago)
Author:
lindanl
Message:

type changed for CPUinfo (x86_CPU_detect.h)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/x86_CPU_detect.h

    r398 r399  
    7979#include <cpuid.h>
    8080static inline int check_CPUid1_feature(CPUid_reg reg, int CPUid_bit) {
    81   int CPUinfo[4];
    82   if (__get_cpuid(1, (unsigned int*)&CPUinfo[reg_eax], (unsigned int*)&CPUinfo[reg_ebx], (unsigned int*)&CPUinfo[reg_ecx], (unsigned int*)&CPUinfo[reg_edx]))
     81  unsigned int CPUinfo[4];
     82  if (__get_cpuid(1, &CPUinfo[reg_eax], &CPUinfo[reg_ebx], &CPUinfo[reg_ecx], &CPUinfo[reg_edx]))
    8383    return CPUinfo[reg] & CPUid_bit;
    8484  else return 0;
Note: See TracChangeset for help on using the changeset viewer.