runtime

Imports

Imports #

"unsafe"

Constants & Variables

arm64HasATOMICS var #

var arm64HasATOMICS bool

armHasVFPv4 var #

var armHasVFPv4 bool

loong64HasLAMCAS var #

var loong64HasLAMCAS bool

loong64HasLAM_BH var #

var loong64HasLAM_BH bool

loong64HasLSX var #

var loong64HasLSX bool

writeBarrier var #

var writeBarrier struct{...}

x86HasFMA var #

var x86HasFMA bool

x86HasPOPCNT var #

architecture variants

var x86HasPOPCNT bool

x86HasSSE41 var #

var x86HasSSE41 bool

Functions

addCovMeta function #

func addCovMeta(p unsafe.Pointer, len uint32, hash [16]byte, pkpath string, pkgId int, cmode uint8, cgran uint8) uint32

asanread function #

address sanitizer

func asanread(addr uintptr, size uintptr)

asanregisterglobals function #

func asanregisterglobals(unsafe.Pointer, uintptr)

asanwrite function #

func asanwrite(addr uintptr, size uintptr)

assertE2I function #

interface type assertions x.(T)

func assertE2I(inter *byte, typ *byte) *byte

assertE2I2 function #

func assertE2I2(inter *byte, typ *byte) *byte

block function #

func block()

c128equal function #

func c128equal(p unsafe.Pointer, q unsafe.Pointer) bool

c128hash function #

func c128hash(p *any, h uintptr) uintptr

c64equal function #

func c64equal(p unsafe.Pointer, q unsafe.Pointer) bool

c64hash function #

func c64hash(p *any, h uintptr) uintptr

chancap function #

func chancap(hchan any) int

chanlen function #

func chanlen(hchan any) int

chanrecv1 function #

func chanrecv1(hchan <-chan any, elem *any)

chanrecv2 function #

func chanrecv2(hchan <-chan any, elem *any) bool

chansend1 function #

func chansend1(hchan chan<- any, elem *any)

checkptrAlignment function #

func checkptrAlignment(unsafe.Pointer, *byte, uintptr)

checkptrArithmetic function #

func checkptrArithmetic(unsafe.Pointer, []unsafe.Pointer)

closechan function #

func closechan(hchan chan<- any)

cmpstring function #

func cmpstring(string, string) int

complex128div function #

func complex128div(num complex128, den complex128) (quo complex128)

concatbyte2 function #

func concatbyte2(string, string) []byte

concatbyte3 function #

func concatbyte3(string, string, string) []byte

concatbyte4 function #

func concatbyte4(string, string, string, string) []byte

concatbyte5 function #

func concatbyte5(string, string, string, string, string) []byte

concatbytes function #

func concatbytes([]string) []byte

concatstring2 function #

func concatstring2(*[32]byte, string, string) string

concatstring3 function #

func concatstring3(*[32]byte, string, string, string) string

concatstring4 function #

func concatstring4(*[32]byte, string, string, string, string) string

concatstring5 function #

func concatstring5(*[32]byte, string, string, string, string, string) string

concatstrings function #

func concatstrings(*[32]byte, []string) string

convT function #

Convert non-interface type to the data word of a (empty or nonempty) interface.

func convT(typ *byte, elem *any) unsafe.Pointer

convT16 function #

Specialized versions of convT for specific types. These functions take concrete types in the runtime. But they may be used for a wider range of types, which have the same memory layout as the parameter type. The compiler converts the to-be-converted type to the parameter type before calling the runtime function. This way, the call is ABI-insensitive.

func convT16(val uint16) unsafe.Pointer

convT32 function #

func convT32(val uint32) unsafe.Pointer

convT64 function #

func convT64(val uint64) unsafe.Pointer

convTnoptr function #

Same as convT, for types with no pointers in them.

func convTnoptr(typ *byte, elem *any) unsafe.Pointer

convTslice function #

func convTslice(val []uint8) unsafe.Pointer

convTstring function #

func convTstring(val string) unsafe.Pointer

countrunes function #

func countrunes(string) int

decoderune function #

func decoderune(string, int) (retv rune, retk int)

deferrangefunc function #

defer in range over func

func deferrangefunc() interface{}

efaceeq function #

func efaceeq(typ *uintptr, x unsafe.Pointer, y unsafe.Pointer) (ret bool)

f32equal function #

func f32equal(p unsafe.Pointer, q unsafe.Pointer) bool

f32hash function #

func f32hash(p *any, h uintptr) uintptr

f64equal function #

func f64equal(p unsafe.Pointer, q unsafe.Pointer) bool

f64hash function #

func f64hash(p *any, h uintptr) uintptr

float64toint64 function #

func float64toint64(float64) int64

float64touint32 function #

func float64touint32(float64) uint32

float64touint64 function #

func float64touint64(float64) uint64

goPanicIndex function #

Note: these declarations are just for wasm port. Other ports call assembly stubs instead.

func goPanicIndex(x int, y int)

goPanicIndexU function #

func goPanicIndexU(x uint, y int)

goPanicSlice3Acap function #

func goPanicSlice3Acap(x int, y int)

goPanicSlice3AcapU function #

func goPanicSlice3AcapU(x uint, y int)

goPanicSlice3Alen function #

func goPanicSlice3Alen(x int, y int)

goPanicSlice3AlenU function #

func goPanicSlice3AlenU(x uint, y int)

goPanicSlice3B function #

func goPanicSlice3B(x int, y int)

goPanicSlice3BU function #

func goPanicSlice3BU(x uint, y int)

goPanicSlice3C function #

func goPanicSlice3C(x int, y int)

goPanicSlice3CU function #

func goPanicSlice3CU(x uint, y int)

goPanicSliceAcap function #

func goPanicSliceAcap(x int, y int)

goPanicSliceAcapU function #

func goPanicSliceAcapU(x uint, y int)

goPanicSliceAlen function #

func goPanicSliceAlen(x int, y int)

goPanicSliceAlenU function #

func goPanicSliceAlenU(x uint, y int)

goPanicSliceB function #

func goPanicSliceB(x int, y int)

goPanicSliceBU function #

func goPanicSliceBU(x uint, y int)

goPanicSliceConvert function #

func goPanicSliceConvert(x int, y int)

gopanic function #

func gopanic(interface{})

gorecover function #

func gorecover(*int32) interface{}

goschedguarded function #

func goschedguarded()

growslice function #

func growslice(oldPtr *any, newLen int, oldCap int, num int, et *byte) (ary []any)

ifaceeq function #

interface equality. Type/itab pointers are already known to be equal, so we only need to pass one.

func ifaceeq(tab *uintptr, x unsafe.Pointer, y unsafe.Pointer) (ret bool)

int64div function #

only used on 32-bit

func int64div(int64, int64) int64

int64mod function #

func int64mod(int64, int64) int64

int64tofloat32 function #

func int64tofloat32(int64) float32

int64tofloat64 function #

func int64tofloat64(int64) float64

interequal function #

func interequal(p unsafe.Pointer, q unsafe.Pointer) bool

interfaceSwitch function #

interface switches

func interfaceSwitch(s *byte, t *byte) (int, *byte)

interhash function #

func interhash(p *any, h uintptr) uintptr

intstring function #

func intstring(*[4]byte, int64) string

libfuzzerHookEqualFold function #

func libfuzzerHookEqualFold(string, string, uint)

libfuzzerHookStrCmp function #

func libfuzzerHookStrCmp(string, string, uint)

libfuzzerTraceCmp1 function #

func libfuzzerTraceCmp1(uint8, uint8, uint)

libfuzzerTraceCmp2 function #

func libfuzzerTraceCmp2(uint16, uint16, uint)

libfuzzerTraceCmp4 function #

func libfuzzerTraceCmp4(uint32, uint32, uint)

libfuzzerTraceCmp8 function #

func libfuzzerTraceCmp8(uint64, uint64, uint)

libfuzzerTraceConstCmp1 function #

func libfuzzerTraceConstCmp1(uint8, uint8, uint)

libfuzzerTraceConstCmp2 function #

func libfuzzerTraceConstCmp2(uint16, uint16, uint)

libfuzzerTraceConstCmp4 function #

func libfuzzerTraceConstCmp4(uint32, uint32, uint)

libfuzzerTraceConstCmp8 function #

func libfuzzerTraceConstCmp8(uint64, uint64, uint)

makechan function #

func makechan(chanType *byte, size int) (hchan chan any)

makechan64 function #

*byte is really *runtime.Type

func makechan64(chanType *byte, size int64) (hchan chan any)

makemap function #

func makemap(mapType *byte, hint int, mapbuf *any) (hmap map[any]any)

makemap64 function #

*byte is really *runtime.Type

func makemap64(mapType *byte, hint int64, mapbuf *any) (hmap map[any]any)

makemap_small function #

func makemap_small() (hmap map[any]any)

makeslice function #

func makeslice(typ *byte, len int, cap int) unsafe.Pointer

makeslice64 function #

func makeslice64(typ *byte, len int64, cap int64) unsafe.Pointer

makeslicecopy function #

func makeslicecopy(typ *byte, tolen int, fromlen int, from unsafe.Pointer) unsafe.Pointer

mallocgc function #

func mallocgc(size uintptr, typ *byte, needszero bool) unsafe.Pointer

mapIterNext function #

func mapIterNext(hiter *any)

mapIterStart function #

func mapIterStart(mapType *byte, hmap map[any]any, hiter *any)

mapaccess1 function #

func mapaccess1(mapType *byte, hmap map[any]any, key *any) (val *any)

mapaccess1_fast32 function #

func mapaccess1_fast32(mapType *byte, hmap map[any]any, key uint32) (val *any)

mapaccess1_fast64 function #

func mapaccess1_fast64(mapType *byte, hmap map[any]any, key uint64) (val *any)

mapaccess1_faststr function #

func mapaccess1_faststr(mapType *byte, hmap map[any]any, key string) (val *any)

mapaccess1_fat function #

func mapaccess1_fat(mapType *byte, hmap map[any]any, key *any, zero *byte) (val *any)

mapaccess2 function #

func mapaccess2(mapType *byte, hmap map[any]any, key *any) (val *any, pres bool)

mapaccess2_fast32 function #

func mapaccess2_fast32(mapType *byte, hmap map[any]any, key uint32) (val *any, pres bool)

mapaccess2_fast64 function #

func mapaccess2_fast64(mapType *byte, hmap map[any]any, key uint64) (val *any, pres bool)

mapaccess2_faststr function #

func mapaccess2_faststr(mapType *byte, hmap map[any]any, key string) (val *any, pres bool)

mapaccess2_fat function #

func mapaccess2_fat(mapType *byte, hmap map[any]any, key *any, zero *byte) (val *any, pres bool)

mapassign function #

func mapassign(mapType *byte, hmap map[any]any, key *any) (val *any)

mapassign_fast32 function #

func mapassign_fast32(mapType *byte, hmap map[any]any, key uint32) (val *any)

mapassign_fast32ptr function #

func mapassign_fast32ptr(mapType *byte, hmap map[any]any, key unsafe.Pointer) (val *any)

mapassign_fast64 function #

func mapassign_fast64(mapType *byte, hmap map[any]any, key uint64) (val *any)

mapassign_fast64ptr function #

func mapassign_fast64ptr(mapType *byte, hmap map[any]any, key unsafe.Pointer) (val *any)

mapassign_faststr function #

func mapassign_faststr(mapType *byte, hmap map[any]any, key string) (val *any)

mapclear function #

func mapclear(mapType *byte, hmap map[any]any)

mapdelete function #

func mapdelete(mapType *byte, hmap map[any]any, key *any)

mapdelete_fast32 function #

func mapdelete_fast32(mapType *byte, hmap map[any]any, key uint32)

mapdelete_fast64 function #

func mapdelete_fast64(mapType *byte, hmap map[any]any, key uint64)

mapdelete_faststr function #

func mapdelete_faststr(mapType *byte, hmap map[any]any, key string)

mapiterinit function #

func mapiterinit(mapType *byte, hmap map[any]any, hiter *any)

mapiternext function #

func mapiternext(hiter *any)

memclrHasPointers function #

func memclrHasPointers(ptr unsafe.Pointer, n uintptr)

memclrNoHeapPointers function #

func memclrNoHeapPointers(ptr unsafe.Pointer, n uintptr)

memequal function #

func memequal(x *any, y *any, size uintptr) bool

memequal0 function #

func memequal0(x *any, y *any) bool

memequal128 function #

func memequal128(x *any, y *any) bool

memequal16 function #

func memequal16(x *any, y *any) bool

memequal32 function #

func memequal32(x *any, y *any) bool

memequal64 function #

func memequal64(x *any, y *any) bool

memequal8 function #

func memequal8(x *any, y *any) bool

memhash function #

func memhash(x *any, h uintptr, size uintptr) uintptr

memhash0 function #

func memhash0(p unsafe.Pointer, h uintptr) uintptr

memhash128 function #

func memhash128(p unsafe.Pointer, h uintptr) uintptr

memhash16 function #

func memhash16(p unsafe.Pointer, h uintptr) uintptr

memhash32 function #

func memhash32(p unsafe.Pointer, h uintptr) uintptr

memhash64 function #

func memhash64(p unsafe.Pointer, h uintptr) uintptr

memhash8 function #

func memhash8(p unsafe.Pointer, h uintptr) uintptr

memmove function #

func memmove(to *any, frm *any, length uintptr)

msanmove function #

func msanmove(dst uintptr, src uintptr, size uintptr)

msanread function #

memory sanitizer

func msanread(addr uintptr, size uintptr)

msanwrite function #

func msanwrite(addr uintptr, size uintptr)

newobject function #

func newobject(typ *byte) *any

nilinterequal function #

func nilinterequal(p unsafe.Pointer, q unsafe.Pointer) bool

nilinterhash function #

func nilinterhash(p *any, h uintptr) uintptr

panicdivide function #

func panicdivide()

panicdottypeE function #

func panicdottypeE(have *byte, want *byte, iface *byte)

panicdottypeI function #

func panicdottypeI(have *byte, want *byte, iface *byte)

panicmakeslicecap function #

func panicmakeslicecap()

panicmakeslicelen function #

func panicmakeslicelen()

panicnildottype function #

func panicnildottype(want *byte)

panicrangestate function #

panic for various rangefunc iterator errors

func panicrangestate(state int)

panicshift function #

func panicshift()

panicunsafeslicelen function #

func panicunsafeslicelen()

panicunsafeslicenilptr function #

func panicunsafeslicenilptr()

panicunsafestringlen function #

func panicunsafestringlen()

panicunsafestringnilptr function #

func panicunsafestringnilptr()

panicwrap function #

func panicwrap()

printbool function #

func printbool(bool)

printcomplex function #

func printcomplex(complex128)

printeface function #

func printeface(any)

printfloat function #

func printfloat(float64)

printhex function #

func printhex(uint64)

printiface function #

func printiface(any)

printint function #

func printint(int64)

printlock function #

func printlock()

printnl function #

func printnl()

printpointer function #

func printpointer(any)

printslice function #

func printslice(any)

printsp function #

func printsp()

printstring function #

func printstring(string)

printuint function #

func printuint(uint64)

printuintptr function #

func printuintptr(uintptr)

printunlock function #

func printunlock()

racefuncenter function #

race detection

func racefuncenter(uintptr)

racefuncexit function #

func racefuncexit()

raceread function #

func raceread(uintptr)

racereadrange function #

func racereadrange(addr uintptr, size uintptr)

racewrite function #

func racewrite(uintptr)

racewriterange function #

func racewriterange(addr uintptr, size uintptr)

rand function #

func rand() uint64

rand32 function #

func rand32() uint32

selectgo function #

func selectgo(cas0 *byte, order0 *byte, pc0 *uintptr, nsends int, nrecvs int, block bool) (int, bool)

selectnbrecv function #

func selectnbrecv(elem *any, hchan <-chan any) (bool, bool)

selectnbsend function #

func selectnbsend(hchan chan<- any, elem *any) bool

selectsetpc function #

func selectsetpc(pc *uintptr)

slicebytetostring function #

func slicebytetostring(buf *[32]byte, ptr *byte, n int) string

slicebytetostringtmp function #

func slicebytetostringtmp(ptr *byte, n int) string

slicecopy function #

func slicecopy(toPtr *any, toLen int, fromPtr *any, fromLen int, wid uintptr) int

slicerunetostring function #

func slicerunetostring(*[32]byte, []rune) string

strequal function #

func strequal(p unsafe.Pointer, q unsafe.Pointer) bool

strhash function #

func strhash(a *any, h uintptr) uintptr

stringtoslicebyte function #

func stringtoslicebyte(*[32]byte, string) []byte

stringtoslicerune function #

func stringtoslicerune(*[32]rune, string) []rune

throwinit function #

func throwinit()

typeAssert function #

func typeAssert(s *byte, typ *byte) *byte

typedmemclr function #

func typedmemclr(typ *byte, dst *any)

typedmemmove function #

*byte is really *runtime.Type

func typedmemmove(typ *byte, dst *any, src *any)

typedslicecopy function #

func typedslicecopy(typ *byte, dstPtr *any, dstLen int, srcPtr *any, srcLen int) int

uint32tofloat64 function #

func uint32tofloat64(uint32) float64

uint64div function #

func uint64div(uint64, uint64) uint64

uint64mod function #

func uint64mod(uint64, uint64) uint64

uint64tofloat32 function #

func uint64tofloat32(uint64) float32

uint64tofloat64 function #

func uint64tofloat64(uint64) float64

unsafeslicecheckptr function #

func unsafeslicecheckptr(typ *byte, ptr unsafe.Pointer, len int64)

unsafestringcheckptr function #

func unsafestringcheckptr(ptr unsafe.Pointer, len int64)

Generated with Arrow