Browse Source

Omit the table overflow check when building for small systems

tags/v0.3.0^2
Martin Kroeker GitHub 7 years ago
parent
commit
e93355e5e1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      common_x86.h

+ 4
- 2
common_x86.h View File

@@ -178,11 +178,13 @@ static __inline int blas_quickdivide(unsigned int x, unsigned int y){
result = x/y;
return result;
#else
#if (MAX_CPU_NUMBER > 64)
if ( y > 64) {
result = x/y;
return result;
}
}
#endif
y = blas_quick_divide_table[y];

__asm__ __volatile__ ("mull %0" :"=d" (result) :"a"(x), "0" (y));


Loading…
Cancel
Save