diff options
author | Noah Goldstein <goldstein.w.n@gmail.com> | 2024-06-14 13:01:58 -0500 |
---|---|---|
committer | Noah Goldstein <goldstein.w.n@gmail.com> | 2024-06-14 17:25:05 -0500 |
commit | 5b54a33435e5533653a9956728f2de9d16a3b4ee (patch) | |
tree | a900de272a97f7cb0f1424fe56a7570a5059b748 /sysdeps/x86/features-offsets.sym | |
parent | 0b7f7842f812e7a70a79ce001e22942f7fe200aa (diff) | |
download | glibc-5b54a33435e5533653a9956728f2de9d16a3b4ee.zip glibc-5b54a33435e5533653a9956728f2de9d16a3b4ee.tar.gz glibc-5b54a33435e5533653a9956728f2de9d16a3b4ee.tar.bz2 |
x86: Fix value for `x86_memset_non_temporal_threshold` when it is undesirable
When we don't want to use non-temporal stores for memset, we set
`x86_memset_non_temporal_threshold` to SIZE_MAX.
The current code, however, we using `maximum_non_temporal_threshold`
as the upper bound which is `SIZE_MAX >> 4` so we ended up with a
value of `0`.
Fix is to just use `SIZE_MAX` as the upper bound for when setting the
tunable.
Tested-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'sysdeps/x86/features-offsets.sym')
0 files changed, 0 insertions, 0 deletions