Documentation
¶
Overview ¶
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 LeadingZeros8(x uint8) int
- func LeadingZeros64(x uint64) int
- func Len8(x uint8) int
- func Len64(x uint64) (n int)
- func OnesCount64(x uint64) int
- func Prefetch(addr uintptr)
- func PrefetchStreamed(addr uintptr)
- func TrailingZeros8(x uint8) int
- func TrailingZeros32(x uint32) int
- func TrailingZeros64(x uint64) int
- type NotInHeap
Constants ¶
View Source
const DefaultPhysPageSize = goarch.DefaultPhysPageSize
DefaultPhysPageSize is the default physical page size.
View Source
const Int64Align = goarch.PtrSize
Int64Align is the required alignment for a 64-bit integer (4 on 32-bit systems, 8 on 64-bit).
View Source
const MinFrameSize = goarch.MinFrameSize
MinFrameSize is the size of the system-reserved words at the bottom of a frame (just above the architectural stack pointer). It is zero on x86 and PtrSize on most non-x86 (LR-based) systems. On PowerPC it is larger, to cover three more reserved words: the compiler word, the link editor word, and the TOC save word.