mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 22:30:07 +00:00
2009-01-27 Min Zhang <mzhang@mvista.com>
* sysdeps/arm/memset.S (memset): Use stm instead of two str instructions.
This commit is contained in:
parent
856cb7775f
commit
f2c9d88207
@ -1,3 +1,8 @@
|
||||
2009-01-27 Min Zhang <mzhang@mvista.com>
|
||||
|
||||
* sysdeps/arm/memset.S (memset): Use stm instead of two
|
||||
str instructions.
|
||||
|
||||
2009-01-27 Kirill A. Shutemov <kirill@shutemov.name>
|
||||
|
||||
* sysdeps/arm/elf/start.S (_start): Use position-independent code
|
||||
|
@ -35,20 +35,17 @@ ENTRY(memset)
|
||||
and r1, r1, #255 @ clear any sign bits
|
||||
orr r1, r1, r1, lsl $8
|
||||
orr r1, r1, r1, lsl $16
|
||||
mov ip, r1
|
||||
|
||||
1:
|
||||
subs r2, r2, #8
|
||||
strcs r1, [r3], #4 @ store up to 32 bytes per loop iteration
|
||||
strcs r1, [r3], #4
|
||||
stmcsia r3!, {r1, ip} @ store up to 32 bytes per loop iteration
|
||||
subcss r2, r2, #8
|
||||
strcs r1, [r3], #4
|
||||
strcs r1, [r3], #4
|
||||
stmcsia r3!, {r1, ip}
|
||||
subcss r2, r2, #8
|
||||
strcs r1, [r3], #4
|
||||
strcs r1, [r3], #4
|
||||
stmcsia r3!, {r1, ip}
|
||||
subcss r2, r2, #8
|
||||
strcs r1, [r3], #4
|
||||
strcs r1, [r3], #4
|
||||
stmcsia r3!, {r1, ip}
|
||||
bcs 1b
|
||||
|
||||
and r2, r2, #7
|
||||
|
Loading…
Reference in New Issue
Block a user