diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2013-10-24 23:07:19 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2013-11-06 20:29:13 +0100 |
commit | dcfe3260e2d6d9de7a2c3fb0022ecf124faa2ae2 (patch) | |
tree | 54199a2f2da24be4d82553fd38a9d890934c649f /numpy/doc/byteswapping.py | |
parent | 8988715e1aea7b10b230115aecae029cf6e80d66 (diff) | |
download | numpy-dcfe3260e2d6d9de7a2c3fb0022ecf124faa2ae2.tar.gz |
ENH: avoid expensive clears in fenv functions
Clearing is 50-100 times more expensive than checking on x86, so check if there
is anything needs to be cleared first. This speeds up scalar operations
by 10%-20%.
Based on Arink Verma code in #3739.
Implement the functions as new C-API functions npy_get_floatstatus and
npy_clear_floatstatus in npy_math.
Diffstat (limited to 'numpy/doc/byteswapping.py')
0 files changed, 0 insertions, 0 deletions