package sys
import "runtime/internal/sys"
package sys contains system- and configuration- and architecture-specific constants used by the runtime.
Index ¶
- Constants
- func Bswap32(x uint32) uint32
- func Bswap64(x uint64) uint64
- func Ctz32(x uint32) int
- func Ctz64(x uint64) int
- type ArchFamilyType
Constants ¶
const DefaultGoroot = `/usr/local/go`
const Goexperiment = ``
const PtrSize = 4 << (^uintptr(0) >> 63) // unsafe.Sizeof(uintptr(0)) but an ideal const
const RegSize = 4 << (^Uintreg(0) >> 63) // unsafe.Sizeof(uintreg(0)) but an ideal const
const SpAlign = 1*(1-GoarchArm64) + 16*GoarchArm64 // SP alignment: 1 normally, 16 for ARM64
const StackGuardMultiplier = 1
const TheVersion = `go1.9rc2`
Functions ¶
func Bswap32 ¶
Bswap32 returns its input with byte order reversed 0x01020304 -> 0x04030201
func Bswap64 ¶
Bswap64 returns its input with byte order reversed 0x0102030405060708 -> 0x0807060504030201
func Ctz32 ¶
Ctz32 counts trailing (low-order) zeroes, and if all are zero, then 32.
func Ctz64 ¶
Ctz64 counts trailing (low-order) zeroes, and if all are zero, then 64.
Types ¶
type ArchFamilyType ¶
type ArchFamilyType int
const ( AMD64 ArchFamilyType = iota ARM ARM64 I386 MIPS MIPS64 PPC64 S390X )
Source Files ¶
arch.go intrinsics.go stubs.go sys.go zversion.go
- Version
- v1.9.0-rc.2
- Published
- Aug 7, 2017
- Platform
- js/wasm
- Last checked
- 1 minute ago –
Tools for package owners.