github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/internal/abi/abi_generic.go (about) 1 // Copyright 2020 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 !goexperiment.regabiargs && !amd64 && !arm64 && !ppc64 && !ppc64le && !riscv64 6 7 package abi 8 9 const ( 10 11 // IntArgRegs is the number of registers dedicated 12 // to passing integer argument values. Result registers are identical 13 // to argument registers, so this number is used for those too. 14 IntArgRegs = 0 15 16 // FloatArgRegs is the number of registers dedicated 17 // to passing floating-point argument values. Result registers are 18 // identical to argument registers, so this number is used for 19 // those too. 20 FloatArgRegs = 0 21 22 // EffectiveFloatRegSize describes the width of floating point 23 // registers on the current platform from the ABI's perspective. 24 // 25 // Since Go only supports 32-bit and 64-bit floating point primitives, 26 // this number should be either 0, 4, or 8. 0 indicates no floating 27 // point registers for the ABI or that floating point values will be 28 // passed via the softfloat ABI. 29 // 30 // For platforms that support larger floating point register widths, 31 // such as x87's 80-bit "registers" (not that we support x87 currently), 32 // use 8. 33 EffectiveFloatRegSize = 0 34 )