MCPcopy Create free account
hub / github.com/numpy/numpy / PyUFunc_getfperr

Function PyUFunc_getfperr

numpy/core/src/umath/ufunc_object.c:125–134  ·  view source on GitHub ↗

UFUNC_API*/

Source from the content-addressed store, hash-verified

123
124/*UFUNC_API*/
125NPY_NO_EXPORT int
126PyUFunc_getfperr(void)
127{
128 /*
129 * non-clearing get was only added in 1.9 so this function always cleared
130 * keep it so just in case third party code relied on the clearing
131 */
132 char param = 0;
133 return npy_clear_floatstatus_barrier(&param);
134}
135
136#define HANDLEIT(NAME, str) {if (retstatus & NPY_FPE_##NAME) { \
137 handle = errmask & UFUNC_MASK_##NAME; \

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected