summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-05-11 14:49:05 -0600
committerGitHub <noreply@github.com>2018-05-11 14:49:05 -0600
commit798aee26bdb9dcc0e806ca9271f0f98297188dec (patch)
tree630568b746462f3a666bff1041d79560fa4f1777 /numpy
parentcc8cef9c24abfcae4ff7acd8e85bd1c3307b41e3 (diff)
parent1e00cc531007aa3418ad9deb7fbc5faaacce5795 (diff)
downloadnumpy-798aee26bdb9dcc0e806ca9271f0f98297188dec.tar.gz
Merge pull request #11073 from mattip/doc-11036
DOC: expand reasoning behind npy_*floatstatus_barrer()
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/include/numpy/npy_math.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/core/include/numpy/npy_math.h b/numpy/core/include/numpy/npy_math.h
index 55e0fbc79..582390cdc 100644
--- a/numpy/core/include/numpy/npy_math.h
+++ b/numpy/core/include/numpy/npy_math.h
@@ -528,10 +528,13 @@ int npy_clear_floatstatus_barrier(char*);
int npy_get_floatstatus_barrier(char*);
/*
* use caution with these - clang and gcc8.1 are known to reorder calls
- * to this form of the function which can defeat the check
+ * to this form of the function which can defeat the check. The _barrier
+ * form of the call is preferable, where the argument is
+ * (char*)&local_variable
*/
int npy_clear_floatstatus(void);
int npy_get_floatstatus(void);
+
void npy_set_floatstatus_divbyzero(void);
void npy_set_floatstatus_overflow(void);
void npy_set_floatstatus_underflow(void);