gmsm/internal/bigmod/nat_noasm.go

23 lines
745 B
Go
Raw Normal View History

// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
2023-06-01 11:12:23 +08:00
//go:build purego || (!386 && !amd64 && !arm && !arm64 && !ppc64 && !ppc64le && !s390x)
// +build purego !386,!amd64,!arm,!arm64,!ppc64,!ppc64le,!s390x
package bigmod
import "unsafe"
func addMulVVW1024(z, x *uint, y uint) (c uint) {
return addMulVVW(unsafe.Slice(z, 1024/_W), unsafe.Slice(x, 1024/_W), y)
}
func addMulVVW1536(z, x *uint, y uint) (c uint) {
return addMulVVW(unsafe.Slice(z, 1536/_W), unsafe.Slice(x, 1536/_W), y)
}
func addMulVVW2048(z, x *uint, y uint) (c uint) {
return addMulVVW(unsafe.Slice(z, 2048/_W), unsafe.Slice(x, 2048/_W), y)
}