]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86: Align entry for memrchr to 64-bytes.
authorNoah Goldstein <goldstein.w.n@gmail.com>
Fri, 24 Jun 2022 16:42:12 +0000 (09:42 -0700)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Mon, 27 Jun 2022 15:35:51 +0000 (08:35 -0700)
The function was tuned around 64-byte entry alignment and performs
better for all sizes with it.

As well different code boths where explicitly written to touch the
minimum number of cache line i.e sizes <= 32 touch only the entry
cache line.

sysdeps/x86_64/multiarch/memrchr-avx2.S

index 9c83c76d3ca60369ba9796ab679a28ebf70d0523..f300d7daf4aa565eeb31861bd080db8653109177 100644 (file)
@@ -35,7 +35,7 @@
 # define VEC_SIZE                      32
 # define PAGE_SIZE                     4096
        .section SECTION(.text), "ax", @progbits
-ENTRY(MEMRCHR)
+ENTRY_P2ALIGN(MEMRCHR, 6)
 # ifdef __ILP32__
        /* Clear upper bits.  */
        and     %RDX_LP, %RDX_LP