projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e93355e
)
Omit the divide table overflow check on small systems
author
Martin Kroeker
<martin@ruby.chemie.uni-freiburg.de>
Wed, 2 May 2018 12:44:50 +0000
(14:44 +0200)
committer
GitHub
<noreply@github.com>
Wed, 2 May 2018 12:44:50 +0000
(14:44 +0200)
common_x86_64.h
patch
|
blob
|
history
diff --git
a/common_x86_64.h
b/common_x86_64.h
index
a145abc
..
9d0ef4e
100644
(file)
--- 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];