[PATCH v2 2/4] math: Optimize fma call on log2pf1
Wilco Dijkstra
Wilco.Dijkstra@arm.com
Tue Oct 14 13:50:39 GMT 2025
Hi Adhemerval,
> Indeed, are you ok with the following:
>
> #ifndef __FP_FAST_FMA
> /* The fma is required only for x == -0x1.da285cp-5f in FE_TONEAREST
> to provide correctly rounded results. */
> if (__glibc_likely (x != -0x1.da285cp-5f))
> z = xd * ix[j] - 1.0;
> else
>#endif
> z = fma (xd, ix[j], -1.0);
Yes, OK to commit like that.
Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
Cheers,
Wilco
More information about the Libc-alpha
mailing list