Omit the divide table overflow check on small systems

This commit is contained in:
Martin Kroeker 2018-05-02 14:44:50 +02:00 committed by GitHub
parent e93355e5e1
commit d0c0506588
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -196,10 +196,12 @@ static __inline int blas_quickdivide(unsigned int x, unsigned int y){
if (y <= 1) return x; if (y <= 1) return x;
#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];