Omit the table overflow check when building for small systems
This commit is contained in:
parent
c1eb06e102
commit
e93355e5e1
|
@ -178,11 +178,13 @@ static __inline int blas_quickdivide(unsigned int x, unsigned int y){
|
||||||
result = x/y;
|
result = x/y;
|
||||||
return result;
|
return result;
|
||||||
#else
|
#else
|
||||||
|
#if (MAX_CPU_NUMBER > 64)
|
||||||
if ( y > 64) {
|
if ( y > 64) {
|
||||||
result = x/y;
|
result = x/y;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
y = blas_quick_divide_table[y];
|
y = blas_quick_divide_table[y];
|
||||||
|
|
||||||
__asm__ __volatile__ ("mull %0" :"=d" (result) :"a"(x), "0" (y));
|
__asm__ __volatile__ ("mull %0" :"=d" (result) :"a"(x), "0" (y));
|
||||||
|
|
Loading…
Reference in New Issue