From e93355e5e1fe1b00a7a9587118c5d3b58ce94922 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Wed, 2 May 2018 14:43:08 +0200 Subject: [PATCH] Omit the table overflow check when building for small systems --- common_x86.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common_x86.h b/common_x86.h index de014064e..75b1e1247 100644 --- a/common_x86.h +++ b/common_x86.h @@ -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));