From d0c0506588281b34717a3e7b17e9cc2c4a5cef8d Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Wed, 2 May 2018 14:44:50 +0200 Subject: [PATCH] Omit the divide table overflow check on small systems --- common_x86_64.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common_x86_64.h b/common_x86_64.h index a145abc14..9d0ef4e75 100644 --- a/common_x86_64.h +++ b/common_x86_64.h @@ -195,11 +195,13 @@ static __inline int blas_quickdivide(unsigned int x, unsigned int y){ unsigned int result; if (y <= 1) return x; - + +#if (MAX_CPU_NUMBER > 64) if (y > 64) { result = x / y; return result; } +#endif y = blas_quick_divide_table[y];