Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nettle
nettle
Commits
084733ae
Commit
084733ae
authored
Mar 14, 2013
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use neon registers for loading the input. Slight slowdown.
parent
45040019
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
27 deletions
+33
-27
armv7/sha512-compress.asm
armv7/sha512-compress.asm
+33
-27
No files found.
armv7/sha512-compress.asm
View file @
084733ae
...
...
@@ -141,38 +141,44 @@ define(<NOEXPN>, <
PROLOGUE
(
_nettle_sha512_compress
)
push
{
r4
,
r5
,
r6
,
r7
,
r8
,
r10
,
r14
}
sub
sp
,
sp
,
#
128
C
Load
data
up
front.
FIXME
:
Use
al
igned
vld1
,
and
vshl.
ands
SHIFT
,
INPUT
,
#
3
and
INPUT
,
INPUT
,
$
-
4
ands
SHIFT
,
INPUT
,
#
7
and
INPUT
,
INPUT
,
#
-
8
vld1.8
{
d0
}
,
[
INPUT
:
64
]
addne
INPUT
,
INPUT
,
#
8
addeq
SHIFT
,
SHIFT
,
#
8
lsl
SHIFT
,
SHIFT
,
#
3
mov
I0
,
#
0
movne
I0
,
#
-
1
lsl
I1
,
I0
,
SHIFT
uadd8
I0
,
I0
,
I1
C
Sets
APSR.GE
bits
ldr
I0
,
[
INPUT
]
addne
INPUT
,
INPUT
,
#
4
C
Put
right
shift
in
d2
and
d3
,
aka
q1
neg
SHIFT
,
SHIFT
vmov.i32
d2
,
#
0
vmov.32
d2
[
0
],
SHIFT
vmov
d3
,
d2
C
Put
left
shift
in
d4
and
d5
,
aka
q2
add
SHIFT
,
SHIFT
,
#
64
vmov.i32
d4
,
#
0
vmov.32
d4
[
0
],
SHIFT
vmov
d5
,
d4
vshl.u64
d0
,
d0
,
d2
mov
DS
T
,
sp
mov
COUNT
,
#
8
mov
COUNT
,
#
4
.Lcopy:
ldm
INPUT
!
,
{
I1
,
I2
,
I3
,
I4
}
sel
IT
,
I0
,
I1
ror
IT
,
IT
,
SHIFT
sel
I0
,
I1
,
I2
ror
I0
,
I0
,
SHIFT
rev
I0
,
I0
rev
I1
,
IT
sel
IT
,
I2
,
I3
ror
IT
,
IT
,
SHIFT
sel
I2
,
I3
,
I4
ror
I2
,
I2
,
SHIFT
rev
I2
,
I2
rev
I3
,
IT
C
Set
w
[
i
]
<--
w
[
i
-
1
]
>>
RSHIFT
+
w
[
i
]
<<
LSHIFT
vld1.8
{
d16
,
d17
,
d18
,
d19
}
,
[
INPUT
:
64
]
!
vshl.u64
q3
,
q8
,
q1
C
Right
shift
vshl.u64
q8
,
q8
,
q2
C
Left
shift
veor
d16
,
d16
,
d0
veor
d17
,
d17
,
d6
vrev64.8
q8
,
q8
vshl.u64
q0
,
q9
,
q1
C
Right
shift
vshl.u64
q9
,
q9
,
q2
C
Left
shift
veor
d18
,
d18
,
d7
veor
d19
,
d19
,
d0
vrev64.8
q9
,
q9
subs
COUNT
,
COUNT
,
#
1
st
m
DS
T
!
,
{
I0
,
I1
,
I2
,
I3
}
mov
I
0
,
I4
v
st
1.64
{
d16
,
d17
,
d18
,
d19
}
,
[
DS
T
]
!
v
mov
d
0
,
d1
bne
.Lcopy
mov
COUNT
,
#
2
...
...
Write
Preview
Markdown
is supported
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