Skip to content

Commit 35d2a69

Browse files
gbotrelTabaie
andauthored
perf: adds (some) arm64 assembly for 4 and 6 words modulus (#554)
Co-authored-by: Arya Tabaie <15056835+Tabaie@users.noreply.github.com>
1 parent c38a8aa commit 35d2a69

File tree

234 files changed

+5865
-2566
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

234 files changed

+5865
-2566
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*.so
66
*.dylib
77
*.txt
8+
**/.rbench.lock
89

910
# Test binary, build with `go test -c`
1011
*.test

ecc/bls12-377/fp/arith.go

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ecc/bls12-377/fp/asm_adx.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ecc/bls12-377/fp/asm_noadx.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ecc/bls12-377/fp/element_amd64.s

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//go:build !purego
2+
3+
// Copyright 2020 ConsenSys Software Inc.
4+
//
5+
// Licensed under the Apache License, Version 2.0 (the "License");
6+
// you may not use this file except in compliance with the License.
7+
// You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing, software
12+
// distributed under the License is distributed on an "AS IS" BASIS,
13+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
// See the License for the specific language governing permissions and
15+
// limitations under the License.
16+
17+
// Code generated by consensys/gnark-crypto DO NOT EDIT
18+
19+
// We include the hash to force the Go compiler to recompile: 11124594824487954849
20+
#include "../../../field/asm/element_6w_amd64.s"
21+

ecc/bls12-377/fp/element_arm64.go

Lines changed: 79 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ecc/bls12-377/fp/element_arm64.s

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//go:build !purego
2+
3+
// Copyright 2020 ConsenSys Software Inc.
4+
//
5+
// Licensed under the Apache License, Version 2.0 (the "License");
6+
// you may not use this file except in compliance with the License.
7+
// You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing, software
12+
// distributed under the License is distributed on an "AS IS" BASIS,
13+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
// See the License for the specific language governing permissions and
15+
// limitations under the License.
16+
17+
// Code generated by consensys/gnark-crypto DO NOT EDIT
18+
19+
// We include the hash to force the Go compiler to recompile: 15397482240260640864
20+
#include "../../../field/asm/element_6w_arm64.s"
21+

ecc/bls12-377/fp/element_ops_amd64.s

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 9 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)