Skip to content

Commit e93355e

Browse files
authored
Omit the table overflow check when building for small systems
1 parent c1eb06e commit e93355e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

common_x86.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,13 @@ static __inline int blas_quickdivide(unsigned int x, unsigned int y){
178178
result = x/y;
179179
return result;
180180
#else
181-
181+
#if (MAX_CPU_NUMBER > 64)
182182
if ( y > 64) {
183183
result = x/y;
184184
return result;
185-
}
185+
}
186+
#endif
187+
186188
y = blas_quick_divide_table[y];
187189

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

0 commit comments

Comments
 (0)