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:
91943b7
)
Correct argument of CPU_ISSET for glibc <2.5
author
Martin Kroeker
<martin@ruby.chemie.uni-freiburg.de>
Wed, 1 May 2019 08:46:46 +0000
(10:46 +0200)
committer
GitHub
<noreply@github.com>
Wed, 1 May 2019 08:46:46 +0000
(10:46 +0200)
fixes #2104
driver/others/memory.c
patch
|
blob
|
history
diff --git
a/driver/others/memory.c
b/driver/others/memory.c
index
ac8545f
..
db14cde
100644
(file)
--- a/
driver/others/memory.c
+++ b/
driver/others/memory.c
@@
-229,7
+229,7
@@
int get_num_procs(void) {
n=0;
#if !__GLIBC_PREREQ(2, 6)
for (i=0;i<nums;i++)
- if (CPU_ISSET(i,cpuset)) n++;
+ if (CPU_ISSET(i,
&
cpuset)) n++;
nums=n;
#else
nums = CPU_COUNT(sizeof(cpuset),&cpuset);
@@
-1772,7
+1772,7
@@
int get_num_procs(void) {
n=0;
#if !__GLIBC_PREREQ(2, 6)
for (i=0;i<nums;i++)
- if (CPU_ISSET(i,cpuset)) n++;
+ if (CPU_ISSET(i,
&
cpuset)) n++;
nums=n;
#else
nums = CPU_COUNT(sizeof(cpuset),&cpuset);