WIP
Change-Id: Ida8ec7bf672316652ccfae8a7c7157dc3001cd72
This commit is contained in:
parent
88a9e70768
commit
608a925497
68
third_party/sike/asm/fp-x86_64.pl
vendored
68
third_party/sike/asm/fp-x86_64.pl
vendored
@ -22,6 +22,40 @@ open OUT,"| \"$^X\" \"$xlate\" $flavour \"$output\"";
|
||||
$PREFIX="sike";
|
||||
$bmi2_adx = 1;
|
||||
|
||||
$code.=<<___;
|
||||
.text
|
||||
|
||||
# p503 x 2
|
||||
p503x2:
|
||||
.quad 0xFFFFFFFFFFFFFFFE
|
||||
.quad 0xFFFFFFFFFFFFFFFF
|
||||
.quad 0x57FFFFFFFFFFFFFF
|
||||
.quad 0x2610B7B44423CF41
|
||||
.quad 0x3737ED90F6FCFB5E
|
||||
.quad 0xC08B8D7BB4EF49A0
|
||||
.quad 0x0080CDEA83023C3C
|
||||
|
||||
# p503 + 1
|
||||
p503p1:
|
||||
.quad 0xAC00000000000000
|
||||
.quad 0x13085BDA2211E7A0
|
||||
.quad 0x1B9BF6C87B7E7DAF
|
||||
.quad 0x6045C6BDDA77A4D0
|
||||
.quad 0x004066F541811E1E
|
||||
|
||||
p503p1_nz:
|
||||
.quad 0xAC00000000000000
|
||||
.quad 0x13085BDA2211E7A0
|
||||
.quad 0x1B9BF6C87B7E7DAF
|
||||
.quad 0x6045C6BDDA77A4D0
|
||||
.quad 0x004066F541811E1E
|
||||
|
||||
.extern OPENSSL_ia32cap_P
|
||||
.hidden OPENSSL_ia32cap_P
|
||||
|
||||
___
|
||||
|
||||
|
||||
# Swaps 16-bytes pointed by %rdi and %rsi
|
||||
# in constant time
|
||||
sub CSWAP16() {
|
||||
@ -157,40 +191,6 @@ $code.=<<___;
|
||||
|
||||
___
|
||||
}
|
||||
|
||||
$code.=<<___;
|
||||
.text
|
||||
|
||||
# p503 x 2
|
||||
p503x2:
|
||||
.quad 0xFFFFFFFFFFFFFFFE
|
||||
.quad 0xFFFFFFFFFFFFFFFF
|
||||
.quad 0x57FFFFFFFFFFFFFF
|
||||
.quad 0x2610B7B44423CF41
|
||||
.quad 0x3737ED90F6FCFB5E
|
||||
.quad 0xC08B8D7BB4EF49A0
|
||||
.quad 0x0080CDEA83023C3C
|
||||
|
||||
# p503 + 1
|
||||
p503p1:
|
||||
.quad 0xAC00000000000000
|
||||
.quad 0x13085BDA2211E7A0
|
||||
.quad 0x1B9BF6C87B7E7DAF
|
||||
.quad 0x6045C6BDDA77A4D0
|
||||
.quad 0x004066F541811E1E
|
||||
|
||||
p503p1_nz:
|
||||
.quad 0xAC00000000000000
|
||||
.quad 0x13085BDA2211E7A0
|
||||
.quad 0x1B9BF6C87B7E7DAF
|
||||
.quad 0x6045C6BDDA77A4D0
|
||||
.quad 0x004066F541811E1E
|
||||
|
||||
.extern OPENSSL_ia32cap_P
|
||||
.hidden OPENSSL_ia32cap_P
|
||||
|
||||
___
|
||||
|
||||
$code.=<<___;
|
||||
.globl ${PREFIX}_fpadd
|
||||
.type ${PREFIX}_fpadd,\@function,3
|
||||
|
Loading…
Reference in New Issue
Block a user