Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Brian Smith
nettle
Commits
5b6cf250
Commit
5b6cf250
authored
Feb 06, 2013
by
Niels Möller
Browse files
ARM: Optmized aligned case of memxor3.
parent
18a78728
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
5b6cf250
2013-02-06 Niels Möller <nisse@lysator.liu.se>
* armv7/memxor.asm (memxor): Optimized aligned case, now
runs at
0.75 cycles/byte.
* armv7/memxor.asm (memxor
, memxor3
): Optimized aligned case, now
runs at
0.75 cycles/byte.
* armv7/README: New file.
* armv7/machine.m4: New (empty) file.
...
...
armv7/memxor.asm
View file @
5b6cf250
...
...
@@ -295,16 +295,40 @@ PROLOGUE(memxor3)
bne
.Lmemxor3_au
;
C
a
,
b
and
ds
t
al
l
have
the
same
al
ignment.
sub
AP
,
#
4
sub
BP
,
#
4
sub
DS
T
,
#
4
tst
N
,
#
4
it
ne
subne
N
,
#
4
bne
.Lmemxor3_aligned_word_loop
.Lmemxor3_aligned_word_loop:
ldr
r4
,
[
AP
,
#
-
4
]
!
ldr
r5
,
[
BP
,
#
-
4
]
!
ldr
r4
,
[
AP
],
#
-
4
ldr
r5
,
[
BP
],
#
-
4
eor
r4
,
r5
str
r4
,
[
DS
T
,
#
-
4
]
!
subs
N
,
#
4
str
r4
,
[
DS
T
],
#
-
4
subs
N
,
#
8
bcc
.Lmemxor3_aligned_word_end
.Lmemxor3_aligned_word_loop:
ldr
r4
,
[
AP
,
#
-
4
]
ldr
r5
,
[
AP
],
#
-
8
ldr
r6
,
[
BP
,
#
-
4
]
ldr
r7
,
[
BP
],
#
-
8
eor
r4
,
r6
eor
r5
,
r7
subs
N
,
#
8
str
r4
,
[
DS
T
,
#
-
4
]
str
r5
,
[
DS
T
],
#
-
8
bcs
.Lmemxor3_aligned_word_loop
adds
N
,
#
4
.Lmemxor3_aligned_word_end:
adds
N
,
#
8
beq
.Lmemxor3_done
add
AP
,
#
4
add
BP
,
#
4
add
DS
T
,
#
4
b
.Lmemxor3_bytes
.Lmemxor3_uu:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment