- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 48 for wasip1 (0.59 sec)
-
src/os/file_posix.go
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build unix || (js && wasm) || wasip1 || windows package os import ( "runtime" "syscall" "time" ) // Close closes the [File], rendering it unusable for I/O. // On files that support [File.SetDeadline], any pending I/O operations will
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 7.1K bytes - Viewed (0) -
src/net/udpsock_posix.go
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build unix || js || wasip1 || windows package net import ( "context" "net/netip" "syscall" ) func sockaddrToUDP(sa syscall.Sockaddr) Addr { switch sa := sa.(type) { case *syscall.SockaddrInet4: return &UDPAddr{IP: sa.Addr[0:], Port: sa.Port}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:54:32 UTC 2024 - 7.5K bytes - Viewed (0) -
src/go/types/example_test.go
// license that can be found in the LICENSE file. // Only run where builders (build.golang.org) have // access to compiled packages for import. // //go:build !android && !ios && !js && !wasip1 package types_test // This file shows examples of basic usage of the go/types API. // // To locate a Go package, use (*go/build.Context).Import. // To load, parse, and type-check a complete Go program
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.9K bytes - Viewed (0) -
test/escape_runtime_atomic.go
func Storep() { var x int // ERROR "moved to heap: x" atomic.StorepNoWB(unsafe.Pointer(&ptr), unsafe.Pointer(&x)) } func Casp1() { // BAD: should always be "does not escape" x := new(int) // ERROR "escapes to heap|does not escape" var y int // ERROR "moved to heap: y" atomic.Casp1(&ptr, unsafe.Pointer(x), unsafe.Pointer(&y))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 874 bytes - Viewed (0) -
src/internal/runtime/atomic/stubs.go
//go:build !wasm package atomic import "unsafe" //go:noescape func Cas(ptr *uint32, old, new uint32) bool // NO go:noescape annotation; see atomic_pointer.go. func Casp1(ptr *unsafe.Pointer, old, new unsafe.Pointer) bool //go:noescape func Casint32(ptr *int32, old, new int32) bool //go:noescape func Casint64(ptr *int64, old, new int64) bool //go:noescape
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 1.2K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_amd64.s
MOVQ ptr+0(FP), BX MOVQ old+8(FP), AX MOVQ new+16(FP), CX LOCK CMPXCHGQ CX, 0(BX) SETEQ ret+24(FP) RET // bool Casp1(void **val, void *old, void *new) // Atomically: // if(*val == old){ // *val = new; // return 1; // } else // return 0; TEXT ·Casp1(SB), NOSPLIT, $0-25 MOVQ ptr+0(FP), BX MOVQ old+8(FP), AX MOVQ new+16(FP), CX LOCK CMPXCHGQ CX, 0(BX) SETEQ ret+24(FP) RET
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 5.2K bytes - Viewed (0) -
misc/wasm/go_wasip1_wasm_exec
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 17:09:10 UTC 2024 - 797 bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_386.s
MOVL old_hi+8(FP), DX MOVL new_lo+12(FP), BX MOVL new_hi+16(FP), CX LOCK CMPXCHG8B 0(BP) SETEQ ret+20(FP) RET // bool Casp1(void **p, void *old, void *new) // Atomically: // if(*p == old){ // *p = new; // return 1; // }else // return 0; TEXT ·Casp1(SB), NOSPLIT, $0-13 MOVL ptr+0(FP), BX MOVL old+4(FP), AX MOVL new+8(FP), CX LOCK CMPXCHGL CX, 0(BX) SETEQ ret+12(FP) RET
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 6.5K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_s390x.s
// func Xaddint64(ptr *int64, delta int64) int64 TEXT ·Xaddint64(SB), NOSPLIT, $0-24 BR ·Xadd64(SB) // func Casp1(ptr *unsafe.Pointer, old, new unsafe.Pointer) bool // Atomically: // if *ptr == old { // *ptr = new // return 1 // } else { // return 0 // } TEXT ·Casp1(SB), NOSPLIT, $0-25 BR ·Cas64(SB) // func Xadd(ptr *uint32, delta int32) uint32 // Atomically: // *ptr += delta
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 7.1K bytes - Viewed (0) -
src/runtime/atomic_pointer.go
func atomic_casPointer(ptr *unsafe.Pointer, old, new unsafe.Pointer) bool { if writeBarrier.enabled { atomicwb(ptr, new) } if goexperiment.CgoCheck2 { cgoCheckPtrWrite(ptr, new) } return atomic.Casp1(ptr, old, new) } // Like above, but implement in terms of sync/atomic's uintptr operations. // We cannot just call the runtime routines, because the race detector expects
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 4K bytes - Viewed (0)