aboutsummaryrefslogtreecommitdiff
path: root/benchtests/inet_ntop_ipv4-source.c
diff options
context:
space:
mode:
authorYury Khrustalev <yury.khrustalev@arm.com>2025-06-16 10:01:22 +0100
committerYury Khrustalev <yury.khrustalev@arm.com>2025-06-18 09:42:33 +0100
commitc0f0db2d59e0908057205b22b21dd9d626d780c1 (patch)
tree53b1d3406ea6b9884abf233b7c0c5f1aeb66da66 /benchtests/inet_ntop_ipv4-source.c
parenteeedfc2f74463a06e8127dde42531913652371f8 (diff)
downloadglibc-c0f0db2d59e0908057205b22b21dd9d626d780c1.zip
glibc-c0f0db2d59e0908057205b22b21dd9d626d780c1.tar.gz
glibc-c0f0db2d59e0908057205b22b21dd9d626d780c1.tar.bz2
aarch64: simplify calls to __libc_arm_za_disable in assembly
There is no functional change in this patch. We remove stores and loads to stack, return address signing, and redundant CFI directives before and after call to __libc_arm_za_disable(). The __libc_arm_za_disable implementation follows special calling convention that allows to avoid most of the operations that would be necessary for a call to a normal function (see [1] for details). First, we rely on __libc_arm_za_disable() not clobbering certain registers, and we put return address into one of these registers. Now we don't need to store it on stack, so we don't need to sign return address using PAC. Second, as a result of the above, we don't need to update the CFI offset. This patch provides small optimisation avoiding unnecessary store and load on stack also simplifies assembly code and CFI directives. [1]: https://github.com/ARM-software/abi-aa/blob/main/aapcs64/aapcs64.rst Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'benchtests/inet_ntop_ipv4-source.c')
0 files changed, 0 insertions, 0 deletions