experimentally removed expensive function calls
This commit is contained in:
parent
6df7a88930
commit
2021d0f9d6
|
@ -46,6 +46,7 @@
|
||||||
#define __volatile__
|
#define __volatile__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
#ifdef HAVE_SSE2
|
#ifdef HAVE_SSE2
|
||||||
#define MB __asm__ __volatile__ ("mfence");
|
#define MB __asm__ __volatile__ ("mfence");
|
||||||
#define WMB __asm__ __volatile__ ("sfence");
|
#define WMB __asm__ __volatile__ ("sfence");
|
||||||
|
@ -53,6 +54,10 @@
|
||||||
#define MB
|
#define MB
|
||||||
#define WMB
|
#define WMB
|
||||||
#endif
|
#endif
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define MB
|
||||||
|
#define WMB
|
||||||
|
|
||||||
static void __inline blas_lock(volatile BLASULONG *address){
|
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));
|
: "0" (op));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
#define WHEREAMI
|
#define WHEREAMI
|
||||||
|
|
||||||
static inline int WhereAmI(void){
|
static inline int WhereAmI(void){
|
||||||
|
@ -111,6 +118,8 @@ static inline int WhereAmI(void){
|
||||||
return apicid;
|
return apicid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef CORE_BARCELONA
|
#ifdef CORE_BARCELONA
|
||||||
#define IFLUSH gotoblas_iflush()
|
#define IFLUSH gotoblas_iflush()
|
||||||
#define IFLUSH_HALF gotoblas_iflush_half()
|
#define IFLUSH_HALF gotoblas_iflush_half()
|
||||||
|
|
|
@ -251,7 +251,9 @@ void blas_set_parameter(void){
|
||||||
|
|
||||||
env_var_t p;
|
env_var_t p;
|
||||||
int factor;
|
int factor;
|
||||||
|
#if !defined(BULLDOZER)
|
||||||
int size = get_L2_size();
|
int size = get_L2_size();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CORE_KATMAI) || defined(CORE_COPPERMINE) || defined(CORE_BANIAS)
|
#if defined(CORE_KATMAI) || defined(CORE_COPPERMINE) || defined(CORE_BANIAS)
|
||||||
size >>= 7;
|
size >>= 7;
|
||||||
|
|
Loading…
Reference in New Issue