Source file src/crypto/internal/fips140/bigmod/nat_noasm.go

     1  // Copyright 2023 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build purego || !(386 || amd64 || arm || arm64 || loong64 || ppc64 || ppc64le || riscv64 || s390x || wasm)
     6  
     7  package bigmod
     8  
     9  import "unsafe"
    10  
    11  func addMulVVW1024(z, x *uint, y uint) (c uint) {
    12  	return addMulVVW(unsafe.Slice(z, 1024/_W), unsafe.Slice(x, 1024/_W), y)
    13  }
    14  
    15  func addMulVVW1536(z, x *uint, y uint) (c uint) {
    16  	return addMulVVW(unsafe.Slice(z, 1536/_W), unsafe.Slice(x, 1536/_W), y)
    17  }
    18  
    19  func addMulVVW2048(z, x *uint, y uint) (c uint) {
    20  	return addMulVVW(unsafe.Slice(z, 2048/_W), unsafe.Slice(x, 2048/_W), y)
    21  }
    22  

View as plain text