[PATCH v4 06/21] math: Remove the SVID error handling from remainderf

Wilco Dijkstra Wilco.Dijkstra@arm.com
Fri Oct 31 12:53:45 GMT 2025


Hi Adhemerval,

>        if (__glibc_unlikely (hx >= EXPONENT_MASK))
> -     return (x * p) / (x * p);
> +     return __math_invalidf (x);
> 
> If is redundant.

> As for remainder, I had to keep it to avoid a 'isnan' check after
> the fmod operation to avoid FE_INVALID if 'x' is NaN.

Is that due to the compare? Changing to isgreater(x + x, y) should fix that.

Cheers,
Wilco


More information about the Libc-alpha mailing list