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
f51537c4
Commit
f51537c4
authored
11 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Use pshufhw + pshuflw for 16-bit rotate.
parent
7de9a19a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+3
-0
3 additions, 0 deletions
ChangeLog
x86_64/chacha-core-internal.asm
+16
-4
16 additions, 4 deletions
x86_64/chacha-core-internal.asm
with
19 additions
and
4 deletions
ChangeLog
+
3
−
0
View file @
f51537c4
2014-01-27 Niels Möller <nisse@lysator.liu.se>
2014-01-27 Niels Möller <nisse@lysator.liu.se>
* x86_64/chacha-core-internal.asm: Use pshufhw + pshuflw for the
16-bit rotate.
* configure.ac (asm_replace_list): Added chacha-core-internal.asm.
* configure.ac (asm_replace_list): Added chacha-core-internal.asm.
* x86_64/chacha-core-internal.asm: New file.
* x86_64/chacha-core-internal.asm: New file.
...
...
This diff is collapsed.
Click to expand it.
x86_64/chacha-core-internal.asm
+
16
−
4
View file @
f51537c4
...
@@ -27,14 +27,26 @@ define(<X3>, <%xmm3>)
...
@@ -27,14 +27,26 @@ define(<X3>, <%xmm3>)
define
(
<
T0
>
,
<%
xmm4
>
)
define
(
<
T0
>
,
<%
xmm4
>
)
define
(
<
T1
>
,
<%
xmm5
>
)
define
(
<
T1
>
,
<%
xmm5
>
)
define
(
<
USE_PSHUFW
>
,
<
yes
>
)
C
ROTL_BY_16
(
REG
,
TMP
)
ifelse
(
USE_PSHUFW
,
<
yes
>
,
<
define
(
<
ROTL_BY_16
>
,
<
pshufhw
<
$
>
0xb1
,
$
1
,
$
1
pshuflw
<
$
>
0xb1
,
$
1
,
$
1
>
)
>
,
<
define
(
<
ROTL_BY_16
>
,
<
pslld
<
$
>
16
,
$
1
psrld
<
$
>
16
,
$
2
por
$
2
,
$
1
>
)
>
)
C
QROUND
C
QROUND
define
(
<
QROUND
>
,
<
define
(
<
QROUND
>
,
<
paddd
X1
,
X0
paddd
X1
,
X0
pxor
X0
,
X3
pxor
X0
,
X3
movaps
X3
,
T0
movaps
X3
,
T0
pslld
<
$
>
16
,
X3
ROTL_BY_16
(
X3
,
T0
)
psrld
<
$
>
16
,
T0
por
T0
,
X3
paddd
X3
,
X2
paddd
X3
,
X2
pxor
X2
,
X1
pxor
X2
,
X1
...
...
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