|
|
|
@@ -1,4 +1,4 @@ |
|
|
|
/*********************************************************************/ |
|
|
|
/*********************************************************************/ |
|
|
|
/* Copyright 2009, 2010 The University of Texas at Austin. */ |
|
|
|
/* All rights reserved. */ |
|
|
|
/* */ |
|
|
|
@@ -199,7 +199,7 @@ static __inline BLASLONG blas_quickdivide(BLASLONG x, BLASLONG y){ |
|
|
|
#else |
|
|
|
extern unsigned int blas_quick_divide_table[]; |
|
|
|
|
|
|
|
static __inline int blas_quickdivide(unsigned int x, unsigned int y){ |
|
|
|
static __inline unsigned int blas_quickdivide(unsigned int x, unsigned int y){ |
|
|
|
|
|
|
|
unsigned int result; |
|
|
|
|
|
|
|
@@ -215,7 +215,7 @@ static __inline int blas_quickdivide(unsigned int x, unsigned int y){ |
|
|
|
y = blas_quick_divide_table[y]; |
|
|
|
|
|
|
|
__asm__ __volatile__ ("mull %0" :"=d" (result), "+a"(x) : "0" (y)); |
|
|
|
|
|
|
|
fprintf(stderr,"quickdivide returning %d\n",result); |
|
|
|
return result; |
|
|
|
} |
|
|
|
#endif |
|
|
|
|