| 438 | } |
| 439 | |
| 440 | extern "C" int |
| 441 | npy_clear_floatstatus_barrier(char *param) |
| 442 | { |
| 443 | /* testing float status is 50-100 times faster than clearing on x86 */ |
| 444 | int fpstatus = npy_get_floatstatus_barrier(param); |
| 445 | if (fpstatus != 0) { |
| 446 | feclearexcept(FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW | FE_INVALID); |
| 447 | } |
| 448 | |
| 449 | return fpstatus; |
| 450 | } |
| 451 | |
| 452 | extern "C" void |
| 453 | npy_set_floatstatus_divbyzero(void) |
no test coverage detected