diff options
author | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2024-07-24 15:17:47 +0100 |
---|---|---|
committer | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2024-10-01 13:39:26 +0100 |
commit | 44fa9c1080fe6a9539f0d2345b9d2ae37b8ee57a (patch) | |
tree | 9ff61ef24765126f2658b71444038bffdb94e13c /sysdeps | |
parent | 4d8965f1304a205f7580fe23bb2d462828d1f8e5 (diff) | |
download | glibc-44fa9c1080fe6a9539f0d2345b9d2ae37b8ee57a.tar.gz glibc-44fa9c1080fe6a9539f0d2345b9d2ae37b8ee57a.tar.xz glibc-44fa9c1080fe6a9539f0d2345b9d2ae37b8ee57a.zip |
math: Improve layout of expf data
GCC aligns global data to 16 bytes if their size is >= 16 bytes. This patch changes the exp2f_data struct slightly so that the fields are better aligned. As a result on targets that support them, load-pair instructions accessing poly_scaled and invln2_scaled are now 16-byte aligned. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/ieee754/flt-32/math_config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/ieee754/flt-32/math_config.h b/sysdeps/ieee754/flt-32/math_config.h index 729f22cd4f..dc07ebd459 100644 --- a/sysdeps/ieee754/flt-32/math_config.h +++ b/sysdeps/ieee754/flt-32/math_config.h @@ -166,9 +166,9 @@ extern const struct exp2f_data uint64_t tab[1 << EXP2F_TABLE_BITS]; double shift_scaled; double poly[EXP2F_POLY_ORDER]; - double shift; double invln2_scaled; double poly_scaled[EXP2F_POLY_ORDER]; + double shift; } __exp2f_data attribute_hidden; #define LOGF_TABLE_BITS 4 |