math: Fix exp10 undefined left shift
commit2a9943b4a03b6bce7c2b1b047592eee38ab74fab
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 22 May 2024 15:33:43 +0000 (22 16:33 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 4 Jun 2024 14:33:26 +0000 (4 15:33 +0100)
treef53f7330dc2d41137d126bf1f15f8f2a6fc68e77
parentd0106b6ae26c8cc046269358a77188105c99d5e3
math: Fix exp10 undefined left shift

Left shift of ki is undefined when ki<0, copy the logic from exp,
which uses unsigned arithmetics, to fix it.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/ieee754/dbl-64/e_exp10.c