File: fp_amd64.go

package info (click to toggle)
golang-github-cloudflare-circl 1.0.0%2B20200724-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,788 kB
  • sloc: asm: 19,418; ansic: 1,289; makefile: 54
file content (27 lines) | stat: -rw-r--r-- 337 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// +build amd64,!purego

package fourq

import (
	"golang.org/x/sys/cpu"
)

var hasBMI2 = cpu.X86.HasBMI2 //nolint

//go:noescape
func fpMod(c *Fp)

//go:noescape
func fpAdd(c, a, b *Fp)

//go:noescape
func fpSub(c, a, b *Fp)

//go:noescape
func fpMul(c, a, b *Fp)

//go:noescape
func fpSqr(c, a *Fp)

//go:noescape
func fpHlf(c, a *Fp)