[PATCH v4 01/12] math: Simplify hypotf implementation
Adhemerval Zanella
adhemerval.zanella@linaro.org
Fri Dec 3 19:44:04 GMT 2021
On 03/12/2021 10:23, Wilco Dijkstra wrote:
> Hi Adhemerval,
>
> - return (float) sqrt(d_x * d_x + d_y * d_y);
> + return math_narrow_eval (sqrt ((double) x * (double) x
> + + (double) y * (double) y));
>
> This still requires a cast to float after the sqrt, otherwise math_narrow_eval
> has no effect. OK with that change.
Ack.
More information about the Libc-alpha
mailing list