Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Wim Lewis
nettle
Commits
bc5482c2
Commit
bc5482c2
authored
23 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Now almost as fast as the C code.
Rev: src/nettle/sparc/aes.asm:1.5
parent
d70329ba
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sparc/aes.asm
+13
-14
13 additions, 14 deletions
sparc/aes.asm
with
13 additions
and
14 deletions
sparc/aes.asm
+
13
−
14
View file @
bc5482c2
...
@@ -59,7 +59,8 @@ key_addition_8to32:
...
@@ -59,7 +59,8 @@ key_addition_8to32:
retl
retl
nop
nop
!
FIXME:
Inline
,
unroll?
!
key_addition32
(
const
uint32_t
*
txt
,
const
uint32_t
*
keys
,
uint32_t
*
out
)
.size
key_addition_8to32
,
.LLfe1
-
key_addition_8to32
.size
key_addition_8to32
,
.LLfe1
-
key_addition_8to32
.align
4
.align
4
.type
key_addition32
,
#
function
.type
key_addition32
,
#
function
...
@@ -67,27 +68,25 @@ key_addition_8to32:
...
@@ -67,27 +68,25 @@ key_addition_8to32:
key_addition32:
key_addition32:
!
Use
%
g2
and
%
g3
as
temporaries
,
%
o3
as
counter
!
Use
%
g2
and
%
g3
as
temporaries
,
%
o3
as
counter
mov
0
,
%
o3
mov
0
,
%
o3
!
Decrement
out
,
so
we
can
increment
the
counter
earlier
in
the
loop
sub
%
o2
,
4
,
%
o2
.LL26:
.LL26:
!
Get
*
txt
++
!
Get
txt
[
i
]
ld
[
%
o0
],
%
g2
ld
[
%
o0
+%
o3
],
%
g2
add
%
o0
,
4
,
%
o0
!
Get
keys
[
i
]
!
Get
*
keys
++
ld
[
%
o1
+%
o3
],
%
g3
ld
[
%
o1
],
%
g3
cmp
%
o3
,
12
add
%
o1
,
4
,
%
o1
add
%
o3
,
4
,
%
o3
xor
%
g2
,
%
g3
,
%
g3
xor
%
g2
,
%
g3
,
%
g3
st
%
g3
,
[
%
o2
]
!
Incrementing
%
o2
in
the
delay
slot
add
%
o3
,
1
,
%
o3
!
FIXME:
Unroll
or
inline?
cmp
%
o3
,
3
bleu
.LL26
bleu
.LL26
add
%
o2
,
4
,
%
o2
st
%
g3
,
[
%
o2
+%
o3
]
retl
retl
nop
nop
!
!
And
three
more
times
!
!
!
mov
%
o0
,
%
o4
!
mov
%
o0
,
%
o4
!
mov
0
,
%
o3
!
mov
0
,
%
o3
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment