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

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Fri Oct 31 20:13:13 GMT 2025



On 31/10/25 15:09, Wilco Dijkstra wrote:
> 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;

Indeed, I will fix it.

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

Ack.

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



More information about the Libc-alpha mailing list