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
Deploy
Releases
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
Brian Smith
nettle
Commits
dd8652d4
Commit
dd8652d4
authored
13 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Implemented sse2-loop. Configured at compile time, and currently
disabled. Rev: nettle/x86_64/memxor.asm:1.3
parent
af1d0e1c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
x86_64/memxor.asm
+43
-1
43 additions, 1 deletion
x86_64/memxor.asm
with
43 additions
and
1 deletion
x86_64/memxor.asm
+
43
−
1
View file @
dd8652d4
...
...
@@ -28,7 +28,9 @@ define(<TMP2>, <%r9>)
define
(
<
CNT
>
,
<%
rdi
>
)
define
(
<
S0
>
,
<%
r11
>
)
define
(
<
S1
>
,
<%
rdi
>
)
C
Overlaps
with
CNT
define
(
<
USE_SSE2
>
,
<
no
>
)
.file
"memxor.asm"
.text
...
...
@@ -78,6 +80,10 @@ PROLOGUE(memxor3)
jnz
.Lalign_loop
.Laligned:
ifelse
(
USE_SSE2
,
yes
,
<
cmp
$
16
,
N
jnc
.Lsse2_case
>
)
C
Ch
eck
for
the
case
that
AP
and
BP
have
the
same
al
ignment
,
C
but
di
fferent
from
DS
T.
mov
AP
,
TMP
...
...
@@ -209,4 +215,40 @@ C jz .Ldone
.Ldone:
ret
ifelse
(
USE_SSE2
,
yes
,
<
.Lsse2_case:
lea
(
DS
T
,
N
),
TMP
test
$
8
,
TMP
jz
.Lsse2_next
sub
$
8
,
N
mov
(
AP
,
N
),
TMP
xor
(
BP
,
N
),
TMP
mov
TMP
,
(
DS
T
,
N
)
jmp
.Lsse2_next
ALIGN
(
4
)
.Lsse2_loop:
movdqu
(
AP
,
N
),
%
xmm0
movdqu
(
BP
,
N
),
%
xmm1
pxor
%
xmm0
,
%
xmm1
movdqa
%
xmm1
,
(
DS
T
,
N
)
.Lsse2_next:
sub
$
16
,
N
ja
.Lsse2_loop
C
FIXME
:
See
if
we
can
do
a
full
word
first
,
before
the
C
byte
-
wise
final
loop.
jnz
.Lfinal
C
Final
operation
is
al
igned
movdqu
(
AP
),
%
xmm0
movdqu
(
BP
),
%
xmm1
pxor
%
xmm0
,
%
xmm1
movdqa
%
xmm1
,
(
DS
T
)
ret
>
)
EPILOGUE
(
memxor3
)
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