[PATCH v4] math: New generic fmaf implementation
Wilco Dijkstra
Wilco.Dijkstra@arm.com
Wed Nov 26 21:43:14 GMT 2025
Hi Adhemerval,
> The current implementation relies on setting the rounding mode for
> different calculations (FE_TOWARDZERO) to obtain correctly rounded
> results. For most CPUs, this adds significant performance overhead
> because it requires executing a typically slow instruction (to
> get/set the floating-point status), necessitates flushing the
> pipeline, and breaks some compiler assumptions/optimizations.
LGTM, thanks.
Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
Cheers,
Wilco
More information about the Libc-alpha
mailing list