projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ece166
)
powerpc: Align hot loops of some string functions
author
Anton Blanchard
<anton@samba.org>
Wed, 25 May 2016 22:39:55 +0000
(08:39 +1000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Tue, 14 Jun 2016 03:58:25 +0000
(13:58 +1000)
Align the hot loops in our assembly implementation of strncpy(),
strncmp() and memchr().
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/lib/string.S
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/lib/string.S
b/arch/powerpc/lib/string.S
index a9470567df474a76af53b20c9fc155032805ae7c..beabc68d9a1e4cdb7e40d26045a906173e652790 100644
(file)
--- a/
arch/powerpc/lib/string.S
+++ b/
arch/powerpc/lib/string.S
@@
-24,6
+24,7
@@
_GLOBAL(strncpy)
mtctr r5
addi r6,r3,-1
addi r4,r4,-1
+ .balign 16
1: lbzu r0,1(r4)
cmpwi 0,r0,0
stbu r0,1(r6)
@@
-42,6
+43,7
@@
_GLOBAL(strncmp)
mtctr r5
addi r5,r3,-1
addi r4,r4,-1
+ .balign 16
1: lbzu r3,1(r5)
cmpwi 1,r3,0
lbzu r0,1(r4)
@@
-73,6
+75,7
@@
_GLOBAL(memchr)
beq- 2f
mtctr r5
addi r3,r3,-1
+ .balign 16
1: lbzu r0,1(r3)
cmpw 0,r0,r4
bdnzf 2,1b