22 lines
618 B
Go
22 lines
618 B
Go
//go:build !amd64
|
|
|
|
package p256k1
|
|
|
|
// hasFieldAsm returns true if field assembly is available.
|
|
// On non-amd64 platforms, assembly is not available.
|
|
func hasFieldAsm() bool {
|
|
return false
|
|
}
|
|
|
|
// fieldMulAsm is a stub for non-amd64 platforms.
|
|
// It should never be called since hasFieldAsm() returns false.
|
|
func fieldMulAsm(r, a, b *FieldElement) {
|
|
panic("field assembly not available on this platform")
|
|
}
|
|
|
|
// fieldSqrAsm is a stub for non-amd64 platforms.
|
|
// It should never be called since hasFieldAsm() returns false.
|
|
func fieldSqrAsm(r, a *FieldElement) {
|
|
panic("field assembly not available on this platform")
|
|
}
|