[PATCH v2 2/5] math: Simplify and optimize modf implementation

Wilco Dijkstra Wilco.Dijkstra@arm.com
Wed Jun 18 15:44:10 GMT 2025


Hi Adhemerval,

> Refactor the generic implementation to use math_config.h definitions,
> and add an alternative one if the ABI supports truncf instructions
> (gated through math-use-builtins-trunc.h).

OK with incorrect use of USE_TRUNCF_BUILTIN fixed.

Reviewed-by: Wilco Dijkstra  <Wilco.Dijkstra@arm.com>

Cheers,
Wilco


+  uint64_t t = asuint64 (x);
+#if USE_TRUNCF_BUILTIN

Surely USE_TRUNC_BUILTIN?



More information about the Libc-alpha mailing list