aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/aarch64/strnlen.S
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2020-12-17 10:03:05 +0000
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2020-12-31 16:50:58 +0000
commit45b1e17e9150dbd9ac2d578579063fbfa8e1b327 (patch)
tree19cb981927b471988432f5cc98a10911d528e7c3 /sysdeps/aarch64/strnlen.S
parentf9de8bfe1a731c309b91d175b4f6f4aeb786effa (diff)
downloadglibc-45b1e17e9150dbd9ac2d578579063fbfa8e1b327.zip
glibc-45b1e17e9150dbd9ac2d578579063fbfa8e1b327.tar.gz
glibc-45b1e17e9150dbd9ac2d578579063fbfa8e1b327.tar.bz2
aarch64: use PTR_ARG and SIZE_ARG instead of DELOUSE
DELOUSE was added to asm code to make them compatible with non-LP64 ABIs, but it is an unfortunate name and the code was not compatible with ABIs where pointer and size_t are different. Glibc currently only supports the LP64 ABI so these macros are not really needed or tested, but for now the name is changed to be more meaningful instead of removing them completely. Some DELOUSE macros were dropped: clone, strlen and strnlen used it unnecessarily. The out of tree ILP32 patches are currently not maintained and will likely need a rework to rebase them on top of the time64 changes.
Diffstat (limited to 'sysdeps/aarch64/strnlen.S')
-rw-r--r--sysdeps/aarch64/strnlen.S5
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/aarch64/strnlen.S b/sysdeps/aarch64/strnlen.S
index 086a5c7..5699105 100644
--- a/sysdeps/aarch64/strnlen.S
+++ b/sysdeps/aarch64/strnlen.S
@@ -55,9 +55,8 @@
#define REP8_80 0x8080808080808080
ENTRY_ALIGN_AND_PAD (__strnlen, 6, 9)
- DELOUSE (0)
- DELOUSE (1)
- DELOUSE (2)
+ PTR_ARG (0)
+ SIZE_ARG (1)
cbz limit, L(hit_limit)
mov zeroones, #REP8_01
bic src, srcin, #15