Skip to content

Commit d0c0506

Browse files
authored
Omit the divide table overflow check on small systems
1 parent e93355e commit d0c0506

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common_x86_64.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,13 @@ static __inline int blas_quickdivide(unsigned int x, unsigned int y){
195195
unsigned int result;
196196

197197
if (y <= 1) return x;
198-
198+
199+
#if (MAX_CPU_NUMBER > 64)
199200
if (y > 64) {
200201
result = x / y;
201202
return result;
202203
}
204+
#endif
203205

204206
y = blas_quick_divide_table[y];
205207

0 commit comments

Comments
 (0)