This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
View | Details | Raw Unified | Return to bug 150
Collapse All | Expand All

(-)a/Eigen/src/Core/util/Memory.h (-1 / +3 lines)
Lines 598-607 Link Here
598
//---------- Cache sizes ----------
598
//---------- Cache sizes ----------
599
599
600
#if defined(__GNUC__) && ( defined(__i386__) || defined(__x86_64__) )
600
#if defined(__GNUC__) && ( defined(__i386__) || defined(__x86_64__) )
601
#  if defined(__PIC__)
601
#  if defined(__PIC__) && defined(__i386__)
602
     // Case for x86 with PIC
602
#    define EIGEN_CPUID(abcd,func,id) \
603
#    define EIGEN_CPUID(abcd,func,id) \
603
       __asm__ __volatile__ ("xchgl %%ebx, %%esi;cpuid; xchgl %%ebx,%%esi": "=a" (abcd[0]), "=S" (abcd[1]), "=c" (abcd[2]), "=d" (abcd[3]) : "a" (func), "c" (id));
604
       __asm__ __volatile__ ("xchgl %%ebx, %%esi;cpuid; xchgl %%ebx,%%esi": "=a" (abcd[0]), "=S" (abcd[1]), "=c" (abcd[2]), "=d" (abcd[3]) : "a" (func), "c" (id));
604
#  else
605
#  else
606
     // Case for x86_64 or x86 w/o PIC
605
#    define EIGEN_CPUID(abcd,func,id) \
607
#    define EIGEN_CPUID(abcd,func,id) \
606
       __asm__ __volatile__ ("cpuid": "=a" (abcd[0]), "=b" (abcd[1]), "=c" (abcd[2]), "=d" (abcd[3]) : "a" (func), "c" (id) );
608
       __asm__ __volatile__ ("cpuid": "=a" (abcd[0]), "=b" (abcd[1]), "=c" (abcd[2]), "=d" (abcd[3]) : "a" (func), "c" (id) );
607
#  endif
609
#  endif

Return to bug 150