]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Cleanup bounds checking in large memcpy case
authorNoah Goldstein <goldstein.w.n@gmail.com>
Wed, 15 Jun 2022 17:41:28 +0000 (10:41 -0700)
committerSunil K Pandey <skpgkp2@gmail.com>
Tue, 19 Jul 2022 05:13:57 +0000 (22:13 -0700)
commit4e7f3b34a494b18e00f3b49d7794149c4bf03afc
treefc5ffe2bf9c798c1b661808ffc6fb0327c5dd0ee
parent2416fd15b9364c7e0cb62071fc48102618514f89
x86: Cleanup bounds checking in large memcpy case

1. Fix incorrect lower-bound threshold in L(large_memcpy_2x).
   Previously was using `__x86_rep_movsb_threshold` and should
   have been using `__x86_shared_non_temporal_threshold`.

2. Avoid reloading __x86_shared_non_temporal_threshold before
   the L(large_memcpy_4x) bounds check.

3. Document the second bounds check for L(large_memcpy_4x)
   more clearly.

(cherry picked from commit 89a25c6f64746732b87eaf433af0964b564d4a92)
sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S