mirror of git://sourceware.org/git/glibc.git
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>
(cherry picked from commit 44fa9c1080)
This commit is contained in:
parent
904c58e47b
commit
59f67e1b82
|
|
@ -126,9 +126,9 @@ extern const struct exp2f_data
|
||||||
uint64_t tab[1 << EXP2F_TABLE_BITS];
|
uint64_t tab[1 << EXP2F_TABLE_BITS];
|
||||||
double shift_scaled;
|
double shift_scaled;
|
||||||
double poly[EXP2F_POLY_ORDER];
|
double poly[EXP2F_POLY_ORDER];
|
||||||
double shift;
|
|
||||||
double invln2_scaled;
|
double invln2_scaled;
|
||||||
double poly_scaled[EXP2F_POLY_ORDER];
|
double poly_scaled[EXP2F_POLY_ORDER];
|
||||||
|
double shift;
|
||||||
} __exp2f_data attribute_hidden;
|
} __exp2f_data attribute_hidden;
|
||||||
|
|
||||||
#define LOGF_TABLE_BITS 4
|
#define LOGF_TABLE_BITS 4
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue