about summary refs log tree commit diff
path: root/sysdeps/aarch64/multiarch/memcpy_advsimd.S
diff options
context:
space:
mode:
authorSunil K Pandey <skpgkp2@gmail.com>2023-07-26 08:34:05 -0700
committerSunil K Pandey <skpgkp2@gmail.com>2024-02-08 10:34:19 -0800
commit47f69077d5d4fe0eb6939a57e5f49b90a856c860 (patch)
tree8fcdee11ae03bf26d61b50a1a5eccd66b96f1e04 /sysdeps/aarch64/multiarch/memcpy_advsimd.S
parent29f401e05d85919a5328567733867d9447d7d706 (diff)
downloadglibc-47f69077d5d4fe0eb6939a57e5f49b90a856c860.tar.gz
glibc-47f69077d5d4fe0eb6939a57e5f49b90a856c860.tar.xz
glibc-47f69077d5d4fe0eb6939a57e5f49b90a856c860.zip
x86_64: Optimize ffsll function code size.
Ffsll function randomly regress by ~20%, depending on how code gets
aligned in memory.  Ffsll function code size is 17 bytes.  Since default
function alignment is 16 bytes, it can load on 16, 32, 48 or 64 bytes
aligned memory.  When ffsll function load at 16, 32 or 64 bytes aligned
memory, entire code fits in single 64 bytes cache line.  When ffsll
function load at 48 bytes aligned memory, it splits in two cache line,
hence random regression.

Ffsll function size reduction from 17 bytes to 12 bytes ensures that it
will always fit in single 64 bytes cache line.

This patch fixes ffsll function random performance regression.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
(cherry picked from commit 9d94997b5f9445afd4f2bccc5fa60ff7c4361ec1)
Diffstat (limited to 'sysdeps/aarch64/multiarch/memcpy_advsimd.S')
0 files changed, 0 insertions, 0 deletions