]> 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>
Thu, 13 Feb 2025 18:16:54 +0000 (18:16 +0000)
commit5afaf99edb326fd9f36eb306a828d129a3a1d7f7
tree46a53911bfaaf9d2b929db513400dc9bdf51a1f6
parentcdb9ba84191ce72e86346fb8b1d906e7cd930ea2
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.  Exp10 is improved by moving invlog10_2N later
so that neglog10_2hiN and neglog10_2loN can be loaded using load-pair.

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

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