]> git.ipfire.org Git - thirdparty/glibc.git/commit
math: Improve layout of exp/exp10 data
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Fri, 13 Dec 2024 15:43:07 +0000 (15:43 +0000)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Fri, 28 Feb 2025 14:52:00 +0000 (14:52 +0000)
commit5a08d049dc5037e89eb95bb1506652f0043fa39e
tree9ed2ea458d916831d64602c0c8880ccd4719f77b
parent097299ffa904b327fce83770fa6a522e4393ddb3
math: Improve layout of exp/exp10 data

GCC aligns global data to 16 bytes if their size is >= 16 bytes.  This patch
changes the exp_data struct slightly so that the fields are better aligned
and without gaps.  As a result on targets that support them, more load-pair
instructions are used in exp.

The exp benchmark improves 2.5%, "144bits" by 7.2%, "768bits" by 12.7% on
Neoverse V2.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
(cherry picked from commit 5afaf99edb326fd9f36eb306a828d129a3a1d7f7)
sysdeps/ieee754/dbl-64/math_config.h