mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
aarch64/strncmp: Use lsr instead of mov+lsr
A lsr can do what the mov and lsr did.
This commit is contained in:
parent
807fee29d2
commit
b47c3e7637
@ -1,3 +1,8 @@
|
||||
2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
|
||||
|
||||
* sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
|
||||
mov + lsr.
|
||||
|
||||
2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
|
||||
|
||||
[BZ #22963]
|
||||
|
@ -208,15 +208,13 @@ L(done):
|
||||
/* Align the SRC1 to a dword by doing a bytewise compare and then do
|
||||
the dword loop. */
|
||||
L(try_misaligned_words):
|
||||
mov limit_wd, limit
|
||||
lsr limit_wd, limit_wd, #3
|
||||
lsr limit_wd, limit, #3
|
||||
cbz count, L(do_misaligned)
|
||||
|
||||
neg count, count
|
||||
and count, count, #7
|
||||
sub limit, limit, count
|
||||
mov limit_wd, limit
|
||||
lsr limit_wd, limit_wd, #3
|
||||
lsr limit_wd, limit, #3
|
||||
|
||||
L(page_end_loop):
|
||||
ldrb data1w, [src1], #1
|
||||
|
Loading…
Reference in New Issue
Block a user