aboutsummaryrefslogtreecommitdiff
path: root/malloc/alloc_buffer_alloc_array.c
diff options
context:
space:
mode:
authorWilco Dijkstra <wilco.dijkstra@arm.com>2024-12-13 15:43:07 +0000
committerWilco Dijkstra <wilco.dijkstra@arm.com>2025-02-28 14:11:05 +0000
commite0bc5f64eaf75764db0f7972ac1763315f5eab81 (patch)
tree37ae9b313a13cf942c21acea2b7a4d572f806909 /malloc/alloc_buffer_alloc_array.c
parent009c5a2dca7cfc66b01b7217edb20996e25642da (diff)
downloadglibc-e0bc5f64eaf75764db0f7972ac1763315f5eab81.tar.xz
glibc-e0bc5f64eaf75764db0f7972ac1763315f5eab81.zip
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> (cherry picked from commit 5afaf99edb326fd9f36eb306a828d129a3a1d7f7)
Diffstat (limited to 'malloc/alloc_buffer_alloc_array.c')
0 files changed, 0 insertions, 0 deletions