Omit the divide table overflow check on small systems
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Wed, 2 May 2018 12:44:50 +0000 (14:44 +0200)
committerGitHub <noreply@github.com>
Wed, 2 May 2018 12:44:50 +0000 (14:44 +0200)
common_x86_64.h

index a145abc..9d0ef4e 100644 (file)
@@ -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];