Support 64bit_asm field on OSX
This commit is contained in:
parent
78fb796997
commit
17eec032c8
|
@ -74,6 +74,9 @@ if test x$YASM = x; then
|
||||||
has_64bit_asm=no
|
has_64bit_asm=no
|
||||||
else
|
else
|
||||||
case x"$host_os" in
|
case x"$host_os" in
|
||||||
|
xdarwin*)
|
||||||
|
YASM_BINFMT=macho64
|
||||||
|
;;
|
||||||
x*-gnux32)
|
x*-gnux32)
|
||||||
YASM_BINFMT=elfx32
|
YASM_BINFMT=elfx32
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -10,6 +10,12 @@
|
||||||
|
|
||||||
BITS 64
|
BITS 64
|
||||||
|
|
||||||
|
%ifidn __OUTPUT_FORMAT__,macho64
|
||||||
|
%define SYM(x) _ %+ x
|
||||||
|
%else
|
||||||
|
%define SYM(x) x
|
||||||
|
%endif
|
||||||
|
|
||||||
;; Procedure ExSetMult
|
;; Procedure ExSetMult
|
||||||
;; Register Layout:
|
;; Register Layout:
|
||||||
;; INPUT: rdi = a->n
|
;; INPUT: rdi = a->n
|
||||||
|
@ -26,9 +32,9 @@
|
||||||
;; rbp = Constant 0FFFFFFFFFFFFFh / t8
|
;; rbp = Constant 0FFFFFFFFFFFFFh / t8
|
||||||
;; rsi = b.n / b.n[4] / t9
|
;; rsi = b.n / b.n[4] / t9
|
||||||
|
|
||||||
GLOBAL secp256k1_fe_mul_inner
|
GLOBAL SYM(secp256k1_fe_mul_inner)
|
||||||
ALIGN 32
|
ALIGN 32
|
||||||
secp256k1_fe_mul_inner:
|
SYM(secp256k1_fe_mul_inner):
|
||||||
push rbp
|
push rbp
|
||||||
push rbx
|
push rbx
|
||||||
push r12
|
push r12
|
||||||
|
@ -315,9 +321,9 @@ common_exit_norm:
|
||||||
;; rcx = a.n[3] / t7
|
;; rcx = a.n[3] / t7
|
||||||
;; rbp = 0FFFFFFFFFFFFFh / t8
|
;; rbp = 0FFFFFFFFFFFFFh / t8
|
||||||
;; rsi = a.n[4] / t9
|
;; rsi = a.n[4] / t9
|
||||||
GLOBAL secp256k1_fe_sqr_inner
|
GLOBAL SYM(secp256k1_fe_sqr_inner)
|
||||||
ALIGN 32
|
ALIGN 32
|
||||||
secp256k1_fe_sqr_inner:
|
SYM(secp256k1_fe_sqr_inner):
|
||||||
push rbp
|
push rbp
|
||||||
push rbx
|
push rbx
|
||||||
push r12
|
push r12
|
||||||
|
|
Loading…
Reference in New Issue