Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Nettle
nettle
Commits
f58d1c28
Commit
f58d1c28
authored
Jul 05, 2012
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
movd/movq workaround for osx assembler.
parent
07415184
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
ChangeLog
ChangeLog
+6
-0
x86_64/salsa20-crypt.asm
x86_64/salsa20-crypt.asm
+8
-2
No files found.
ChangeLog
View file @
f58d1c28
2012-07-05 Niels Möller <nisse@lysator.liu.se>
* x86_64/salsa20-crypt.asm (salsa20_crypt): Write the 64-bit movq
instructions as "movd", since that makes the osx assembler
happier. Assembles to the same machine code on gnu/linux.
2012-07-03 Niels Möller <nisse@lysator.liu.se>
* aclocal.m4 (LSH_FUNC_ALLOCA): In the config.h boilerplate,
...
...
x86_64/salsa20-crypt.asm
View file @
f58d1c28
...
...
@@ -237,13 +237,19 @@ PROLOGUE(nettle_salsa20_crypt)
and
$
-
16
,
POS
test
$
8
,
LENGTH
jz
.Llt8
movq
T0
,
T64
C
This
"movd"
instruction
should
assemble
to
C
66
49
0
f
7
e
e0
movq
%
xmm4
,
%
r8
C
Apparently
,
assemblers
treat
movd
and
movq
(
with
the
C
arguments
we
use
)
in
the
same
way
,
except
for
osx
,
which
C
barfs
at
movq.
movd
T0
,
T64
xor
(
SRC
,
POS
),
T64
mov
T64
,
(
DS
T
,
POS
)
lea
8
(
POS
),
POS
pshufd
$
0xee
,
T0
,
T0
C
10
11
10
11
.Llt8:
movq
T0
,
T64
C
And
this
is
al
so
really
a
movq.
movd
T0
,
T64
test
$
4
,
LENGTH
jz
.Llt4
mov
XREG
(
T64
),
XREG
(
COUNT
)
...
...
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