2023-06-01 10:39:12 +08:00
|
|
|
// Copyright 2023 The Go Authors. All rights reserved.
|
2022-11-22 11:02:37 +08:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2023-06-01 10:39:12 +08:00
|
|
|
//go:build purego || !(386 || amd64 || arm || arm64 || ppc64 || ppc64le || s390x)
|
|
|
|
// +build !386,!amd64,!arm,!arm64,!ppc64,!ppc64le,!s390x purego
|
2022-11-22 11:02:37 +08:00
|
|
|
|
|
|
|
package bigmod
|
|
|
|
|
2023-06-01 10:39:12 +08:00
|
|
|
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)
|
2022-11-22 11:02:37 +08:00
|
|
|
}
|