Skip to content

Change extension of assembler headers .h -> .s #540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
4 changes: 2 additions & 2 deletions dh/x25519/curve_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include "textflag.h"

// Depends on circl/math/fp25519 package
#include "../../math/fp25519/fp_amd64.h"
#include "curve_amd64.h"
#include "../../math/fp25519/fpMacro_amd64.s"
#include "curveMacro_amd64.s"

// CTE_A24 is (A+2)/4 from Curve25519
#define CTE_A24 121666
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions dh/x448/curve_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include "textflag.h"

// Depends on circl/math/fp448 package
#include "../../math/fp448/fp_amd64.h"
#include "curve_amd64.h"
#include "../../math/fp448/fpMacro_amd64.s"
#include "curveMacro_amd64.s"

// CTE_A24 is (A+2)/4 from Curve448
#define CTE_A24 39082
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion ecc/fourq/fp_amd64.s
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// +build amd64,!purego

#include "textflag.h"
#include "fp_amd64.h"
#include "fpMacro_amd64.s"

// fpModp sets e to zero if it is equal to p. This is the only case where c
// will not naturally be reduced to canonical form.
Expand Down
2 changes: 1 addition & 1 deletion ecc/fourq/fq_amd64.h → ecc/fourq/fqMacro_amd64.s
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "fp_amd64.h"
#include "fpMacro_amd64.s"

#define _fqAdd(c,a,b) \
_fpAdd( 0+c, 0+a, 0+b) \
Expand Down
2 changes: 1 addition & 1 deletion ecc/fourq/fq_amd64.s
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build amd64,!purego

#include "fq_amd64.h"
#include "fqMacro_amd64.s"

#define fqMulLegacy \
_fqMulLeg(0(DI),0(SI),0(BX))
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions ecc/fourq/point_amd64.s
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// +build amd64,!purego

#include "go_asm.h"
#include "fq_amd64.h"
#include "point_amd64.h"
#include "fqMacro_amd64.s"
#include "pointMacro_amd64.s"

// func doubleAmd64(P *pointR1)
TEXT ·doubleAmd64(SB),0,$0-8
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion math/fp25519/fp_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// +build amd64,!purego

#include "textflag.h"
#include "fp_amd64.h"
#include "fpMacro_amd64.s"

// func cmovAmd64(x, y *Elt, n uint)
TEXT ·cmovAmd64(SB),NOSPLIT,$0-24
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion math/fp448/fp_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// +build amd64,!purego

#include "textflag.h"
#include "fp_amd64.h"
#include "fpMacro_amd64.s"

// func cmovAmd64(x, y *Elt, n uint)
TEXT ·cmovAmd64(SB),NOSPLIT,$0-24
Expand Down