Source File
arith_decl.go
Belonging Package
math/big
// Copyright 2010 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.//go:build !math_big_pure_go//go:generate go test ./internal/asmgen -generatepackage bigimport _ // for linkname// implemented in arith_$GOARCH.s// addVV should be an internal detail,// but widely used packages access it using linkname.// Notable members of the hall of shame include:// - github.com/remyoudompheng/bigfft//// Do not remove or change the type signature.// See go.dev/issue/67401.////go:linkname addVV//go:noescapefunc addVV(, , []Word) ( Word)// subVV should be an internal detail,// but widely used packages access it using linkname.// Notable members of the hall of shame include:// - github.com/remyoudompheng/bigfft//// Do not remove or change the type signature.// See go.dev/issue/67401.////go:linkname subVV//go:noescapefunc subVV(, , []Word) ( Word)// shlVU should be an internal detail (and a stale one at that),// but widely used packages access it using linkname.// Notable members of the hall of shame include:// - github.com/remyoudompheng/bigfft//// Do not remove or change the type signature.// See go.dev/issue/67401.////go:linkname shlVUfunc shlVU(, []Word, uint) ( Word) {if == 0 {copy(, )return 0}return lshVU(, , )}// lshVU sets z = x<<s, returning the high bits c. 1 ≤ s ≤ _B-1.////go:noescapefunc lshVU(, []Word, uint) ( Word)// rshVU sets z = x>>s, returning the low bits c. 1 ≤ s ≤ _B-1.////go:noescapefunc rshVU(, []Word, uint) ( Word)// mulAddVWW should be an internal detail,// but widely used packages access it using linkname.// Notable members of the hall of shame include:// - github.com/remyoudompheng/bigfft//// Do not remove or change the type signature.// See go.dev/issue/67401.////go:linkname mulAddVWW//go:noescapefunc mulAddVWW(, []Word, , Word) ( Word)// addMulVVW should be an internal detail (and a stale one at that),// but widely used packages access it using linkname.// Notable members of the hall of shame include:// - github.com/remyoudompheng/bigfft//// Do not remove or change the type signature.// See go.dev/issue/67401.////go:linkname addMulVVWfunc addMulVVW(, []Word, Word) ( Word) {return addMulVVWW(, , , , 0)}// addMulVVWW sets z = x+y*m+a.////go:noescapefunc addMulVVWW(, , []Word, , Word) ( Word)
![]() |
The pages are generated with Golds v0.7.9-preview. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |