[PATCH v4 06/21] math: Remove the SVID error handling from remainderf
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Fri Oct 31 14:10:24 GMT 2025
On 31/10/25 09:53, Wilco Dijkstra wrote:
> 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.
Indeed, I forgo about the unordered compare.
More information about the Libc-alpha
mailing list