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
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Wim Lewis
nettle
Commits
10e0615f
Commit
10e0615f
authored
Feb 28, 2013
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce number of additions for x86_64 ecc_192_modp.
parent
190c1584
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
33 deletions
+39
-33
ChangeLog
ChangeLog
+3
-0
x86_64/ecc-192-modp.asm
x86_64/ecc-192-modp.asm
+36
-33
No files found.
ChangeLog
View file @
10e0615f
2013-02-28 Niels Möller <nisse@lysator.liu.se>
* x86_64/ecc-192-modp.asm: Reorganized to reduce number of
additions. Use setc instruction.
* examples/Makefile.in: Let $(HOGWEED_TARGETS) depend on
../libhogweed.a.
...
...
x86_64/ecc-192-modp.asm
View file @
10e0615f
...
...
@@ -20,50 +20,53 @@ C MA 02111-1301, USA.
.file
"ecc-192-modp.asm"
define
(
<
RP
>
,
<%
rsi
>
)
define
(
<
T1
>
,
<%
rdi
>
)
C
Overlaps
unused
ecc
input
define
(
<
T2
>
,
<%
rcx
>
)
define
(
<
T3
>
,
<%
rdx
>
)
define
(
<
T4
>
,
<%
r8
>
)
define
(
<
T5
>
,
<%
r9
>
)
define
(
<
T6
>
,
<%
r10
>
)
define
(
<
T0
>
,
<%
rdi
>
)
C
Overlaps
unused
ecc
input
define
(
<
T1
>
,
<%
rcx
>
)
define
(
<
T2
>
,
<%
rdx
>
)
define
(
<
T3
>
,
<%
r8
>
)
define
(
<
H
>
,
<%
r9
>
)
define
(
<
C1
>
,
<%
r10
>
)
define
(
<
C2
>
,
<%
r11
>
)
C
ecc_192_modp
(
const
struct
ecc_curve
*
ecc
,
mp_limb_t
*
rp
)
.text
ALIGN
(
4
)
PROLOGUE
(
nettle_ecc_192_modp
)
W64_ENTRY
(
2
,
0
)
C
First
:
(
B
+
1
)
*
{
r5
,
r4
}
<
B
^
3
+
B
^
2
-
B
mov
32
(
RP
),
T1
mov
40
(
RP
),
T2
mov
T2
,
T3
xor
T4
,
T4
add
T1
,
T2
adc
$
0
,
T3
adc
$
0
,
T4
mov
16
(
RP
),
T2
mov
24
(
RP
),
T3
mov
40
(
RP
),
H
xor
C1
,
C1
xor
C2
,
C2
add
8
(
RP
),
T1
adc
16
(
RP
),
T2
adc
24
(
RP
),
T3
adc
$
0
,
T4
C
Sum
is
<
2
B
^
4
+
B
^
3
-
B
-
1
,
so
{
T4
,
T3
}
<
3
B
add
H
,
T2
adc
H
,
T3
C
Carry
to
be
added
in
at
T1
and
T2
setc
LREG
(
C2
)
mov
8
(
RP
),
T1
mov
32
(
RP
),
H
adc
H
,
T1
adc
H
,
T2
C
Carry
to
be
added
in
at
T0
and
T1
setc
LREG
(
C1
)
mov
(
RP
),
T0
adc
T3
,
T0
adc
T3
,
T1
adc
$
0
,
C2
C
Next
:
(
B
+
1
)
*
{
T4
,
T3
}
<
3
B
^
2
+
2
B
mov
T4
,
T5
ad
d
T3
,
T4
adc
$
0
,
T5
C
Add
in
C1
and
C2
add
C1
,
T1
ad
c
C2
,
T2
setc
LREG
(
C1
)
xor
T6
,
T6
add
(
RP
),
T3
adc
T4
,
T1
adc
T5
,
T2
adc
$
0
,
T6
C
Fold
in
final
carry.
add
T6
,
T3
adc
T6
,
T1
C
Fold
final
carry.
adc
$
0
,
T0
adc
C1
,
T1
adc
$
0
,
T2
mov
T
3
,
(
RP
)
mov
T
0
,
(
RP
)
mov
T1
,
8
(
RP
)
mov
T2
,
16
(
RP
)
...
...
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