|
|
|
@@ -46,6 +46,7 @@ |
|
|
|
#define __volatile__ |
|
|
|
#endif |
|
|
|
|
|
|
|
/* |
|
|
|
#ifdef HAVE_SSE2 |
|
|
|
#define MB __asm__ __volatile__ ("mfence"); |
|
|
|
#define WMB __asm__ __volatile__ ("sfence"); |
|
|
|
@@ -53,6 +54,10 @@ |
|
|
|
#define MB |
|
|
|
#define WMB |
|
|
|
#endif |
|
|
|
*/ |
|
|
|
|
|
|
|
#define MB |
|
|
|
#define WMB |
|
|
|
|
|
|
|
static void __inline blas_lock(volatile BLASULONG *address){ |
|
|
|
|
|
|
|
@@ -99,6 +104,8 @@ static __inline void cpuid(int op, int *eax, int *ebx, int *ecx, int *edx){ |
|
|
|
: "0" (op)); |
|
|
|
} |
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
#define WHEREAMI |
|
|
|
|
|
|
|
static inline int WhereAmI(void){ |
|
|
|
@@ -111,6 +118,8 @@ static inline int WhereAmI(void){ |
|
|
|
return apicid; |
|
|
|
} |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
#ifdef CORE_BARCELONA |
|
|
|
#define IFLUSH gotoblas_iflush() |
|
|
|
#define IFLUSH_HALF gotoblas_iflush_half() |
|
|
|
|