[PATCH v5 5/7] math: Remove the SVID error handling from sinhf

Wilco Dijkstra Wilco.Dijkstra@arm.com
Fri Oct 31 18:09:13 GMT 2025


Hi Adhemerval,

> It improves latency for about 3-10% and throughput for about 5-15%.

           if (ux << 8)
             return x + x;                            /* nan */
           return copysignf (INFINITY, x); /* +-inf */

??? That's just return x;

         }
-      float r = math_narrow_eval (sgn * 0x1.fffffep127f);
-      return r;
+      return __math_oflowf (x < 0);

OK with that change.

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

Cheers,
Wilco




More information about the Libc-alpha mailing list