Fair enough.
On 25 Oct 2013 17:26, "Julian Taylor" <notifications@github.com> wrote:

> In numpy/core/include/numpy/ufuncobject.h:
>
> > +npy_get_floatstatus(void)
> > +{
> > +    unsigned long fpstatus = ieee_get_fp_control();
> > +    return  ((IEEE_STATUS_DZE & fpstatus) ? UFUNC_FPE_DIVIDEBYZERO : 0)
> > +             | ((IEEE_STATUS_OVF & fpstatus) ? UFUNC_FPE_OVERFLOW : 0)
> > +             | ((IEEE_STATUS_UNF & fpstatus) ? UFUNC_FPE_UNDERFLOW : 0)
> > +             | ((IEEE_STATUS_INV & fpstatus) ? UFUNC_FPE_INVALID : 0);
> > +}
> > +
> > +static NPY_INLINE int
> > +npy_clear_floatstatus(void)
> > +{
> > +    long fpstatus = npy_get_floatstatus();
> > +    if (fpstatus != 0) {
> > +        /* clear status bits as well as disable exception mode if on */
> > +        ieee_set_fp_control(0);
>
> none of the other paths rely on clearing exception modes, but to be safe
> its probably better to keep the old behavior on these hardly tested
> platforms
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/numpy/numpy/pull/3974/files#r7220909>
> .
>