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:
f5f50b3
)
bugfix for linux affinity code
author
wernsaar
<wernsaar@googlemail.com>
Fri, 1 Aug 2014 21:10:08 +0000
(23:10 +0200)
committer
wernsaar
<wernsaar@googlemail.com>
Fri, 1 Aug 2014 21:10:08 +0000
(23:10 +0200)
common.h
patch
|
blob
|
history
diff --git
a/common.h
b/common.h
index 7125ce3bc9ca0c4db4dc3ddaf4e14698f3de506e..1250e2e610009314fbd2cbe835e816978b1d65de 100644
(file)
--- a/
common.h
+++ b/
common.h
@@
-524,10
+524,21
@@
static __inline void blas_unlock(volatile BLASULONG *address){
*address = 0;
}
+
+#ifdef OS_WINDOWS
static __inline int readenv_atoi(char *env) {
env_var_t p;
return readenv(p,env) ? 0 : atoi(p);
}
+#else
+static __inline int readenv_atoi(char *env) {
+ char *p;
+ if (( p = getenv(env) ))
+ return (atoi(p));
+ else
+ return(0);
+}
+#endif
#if !defined(XDOUBLE) || !defined(QUAD_PRECISION)