package sys

import "runtime/internal/sys"

package sys contains system- and configuration- and architecture-specific constants used by the runtime.

Index

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.7rc3`

Functions

func Bswap32

func Bswap32(x uint32) uint32

Bswap32 returns its input with byte order reversed 0x01020304 -> 0x04030201

func Bswap64

func Bswap64(x uint64) uint64

Bswap64 returns its input with byte order reversed 0x0102030405060708 -> 0x0807060504030201

func Ctz16

func Ctz16(x uint16) uint16

Ctz16 counts trailing (low-order) zeroes, and if all are zero, then 16.

func Ctz32

func Ctz32(x uint32) uint32

Ctz32 counts trailing (low-order) zeroes, and if all are zero, then 32.

func Ctz64

func Ctz64(x uint64) uint64

Ctz64 counts trailing (low-order) zeroes, and if all are zero, then 64.

func Ctz8

func Ctz8(x uint8) uint8

Ctz8 counts trailing (low-order) zeroes, and if all are zero, then 8.

Types

type ArchFamilyType

type ArchFamilyType int
const (
	AMD64 ArchFamilyType = iota
	ARM
	ARM64
	I386
	MIPS64
	PPC64
	S390X
)

Source Files

arch.go intrinsics.go stubs.go sys.go zversion.go

Version
v1.7.0-rc.3
Published
Jul 21, 2016
Platform
js/wasm
Last checked
6 seconds ago

Tools for package owners.