good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
open
bor
Commits
39bd2609
Unverified
Commit
39bd2609
authored
6 years ago
by
Péter Szilágyi
Browse files
Options
Downloads
Patches
Plain Diff
crypto/bn256/cloudflare: pull in upstream fix for Go 1.12 R18
parent
dac7cbcf
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
crypto/bn256/cloudflare/mul_arm64.h
+16
-16
16 additions, 16 deletions
crypto/bn256/cloudflare/mul_arm64.h
with
16 additions
and
16 deletions
crypto/bn256/cloudflare/mul_arm64.h
+
16
−
16
View file @
39bd2609
...
...
@@ -12,7 +12,7 @@
UMULH R1, R8, c4 \
ADCS ZR, c4 \
\
MUL R2, R5, R
25
\
MUL R2, R5, R
1
\
UMULH R2, R5, R26 \
MUL R2, R6, R0 \
ADDS R0, R26 \
...
...
@@ -24,13 +24,13 @@
ADCS R0, R29 \
UMULH R2, R8, c5 \
ADCS ZR, c5 \
ADDS R
25
, c1 \
ADDS R
1
, c1 \
ADCS R26, c2 \
ADCS R27, c3 \
ADCS R29, c4 \
ADCS ZR, c5 \
\
MUL R3, R5, R
25
\
MUL R3, R5, R
1
\
UMULH R3, R5, R26 \
MUL R3, R6, R0 \
ADDS R0, R26 \
...
...
@@ -42,13 +42,13 @@
ADCS R0, R29 \
UMULH R3, R8, c6 \
ADCS ZR, c6 \
ADDS R
25
, c2 \
ADDS R
1
, c2 \
ADCS R26, c3 \
ADCS R27, c4 \
ADCS R29, c5 \
ADCS ZR, c6 \
\
MUL R4, R5, R
25
\
MUL R4, R5, R
1
\
UMULH R4, R5, R26 \
MUL R4, R6, R0 \
ADDS R0, R26 \
...
...
@@ -60,7 +60,7 @@
ADCS R0, R29 \
UMULH R4, R8, c7 \
ADCS ZR, c7 \
ADDS R
25
, c3 \
ADDS R
1
, c3 \
ADCS R26, c4 \
ADCS R27, c5 \
ADCS R29, c6 \
...
...
@@ -69,15 +69,15 @@
#define gfpReduce() \
\ // m = (T * N') mod R, store m in R1:R2:R3:R4
MOVD
·
np
+
0
(
SB
),
R17
\
MOVD
·
np
+
8
(
SB
),
R
18
\
MOVD
·
np
+
8
(
SB
),
R
25
\
MOVD
·
np
+
16
(
SB
),
R19
\
MOVD
·
np
+
24
(
SB
),
R20
\
\
MUL
R9
,
R17
,
R1
\
UMULH
R9
,
R17
,
R2
\
MUL
R9
,
R
18
,
R0
\
MUL
R9
,
R
25
,
R0
\
ADDS
R0
,
R2
\
UMULH
R9
,
R
18
,
R3
\
UMULH
R9
,
R
25
,
R3
\
MUL
R9
,
R19
,
R0
\
ADCS
R0
,
R3
\
UMULH
R9
,
R19
,
R4
\
...
...
@@ -86,9 +86,9 @@
\
MUL
R10
,
R17
,
R21
\
UMULH
R10
,
R17
,
R22
\
MUL
R10
,
R
18
,
R0
\
MUL
R10
,
R
25
,
R0
\
ADDS
R0
,
R22
\
UMULH
R10
,
R
18
,
R23
\
UMULH
R10
,
R
25
,
R23
\
MUL
R10
,
R19
,
R0
\
ADCS
R0
,
R23
\
ADDS
R21
,
R2
\
...
...
@@ -97,7 +97,7 @@
\
MUL
R11
,
R17
,
R21
\
UMULH
R11
,
R17
,
R22
\
MUL
R11
,
R
18
,
R0
\
MUL
R11
,
R
25
,
R0
\
ADDS
R0
,
R22
\
ADDS
R21
,
R3
\
ADCS
R22
,
R4
\
...
...
@@ -107,19 +107,19 @@
\
\
// m * N
loadModulus
(
R5
,
R6
,
R7
,
R8
)
\
mul
(
R17
,
R
18
,
R19
,
R20
,
R21
,
R22
,
R23
,
R24
)
\
mul
(
R17
,
R
25
,
R19
,
R20
,
R21
,
R22
,
R23
,
R24
)
\
\
\
// Add the 512-bit intermediate to m*N
MOVD
ZR
,
R
25
\
MOVD
ZR
,
R
0
\
ADDS
R9
,
R17
\
ADCS
R10
,
R
18
\
ADCS
R10
,
R
25
\
ADCS
R11
,
R19
\
ADCS
R12
,
R20
\
ADCS
R13
,
R21
\
ADCS
R14
,
R22
\
ADCS
R15
,
R23
\
ADCS
R16
,
R24
\
ADCS
ZR
,
R
25
\
ADCS
ZR
,
R
0
\
\
\
// Our output is R21:R22:R23:R24. Reduce mod p if necessary.
SUBS
R5
,
R21
,
R10
\
...
...
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