Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 652 for ptr (0.04 sec)

  1. src/internal/runtime/atomic/atomic_wasm.go

    	*ptr = new
    	return old
    }
    
    //go:nosplit
    //go:noinline
    func Xchgint32(ptr *int32, new int32) int32 {
    	old := *ptr
    	*ptr = new
    	return old
    }
    
    //go:nosplit
    //go:noinline
    func Xchgint64(ptr *int64, new int64) int64 {
    	old := *ptr
    	*ptr = new
    	return old
    }
    
    //go:nosplit
    //go:noinline
    func Xchguintptr(ptr *uintptr, new uintptr) uintptr {
    	old := *ptr
    	*ptr = new
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. src/internal/runtime/atomic/atomic_ppc64x.go

    //go:noescape
    func Load8(ptr *uint8) uint8
    
    //go:noescape
    func Load64(ptr *uint64) uint64
    
    // NO go:noescape annotation; *ptr escapes if result escapes (#31525)
    func Loadp(ptr unsafe.Pointer) unsafe.Pointer
    
    //go:noescape
    func LoadAcq(ptr *uint32) uint32
    
    //go:noescape
    func LoadAcq64(ptr *uint64) uint64
    
    //go:noescape
    func LoadAcquintptr(ptr *uintptr) uintptr
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. src/internal/runtime/atomic/atomic_riscv64.go

    //go:noescape
    func Load8(ptr *uint8) uint8
    
    //go:noescape
    func Load64(ptr *uint64) uint64
    
    // NO go:noescape annotation; *ptr escapes if result escapes (#31525)
    func Loadp(ptr unsafe.Pointer) unsafe.Pointer
    
    //go:noescape
    func LoadAcq(ptr *uint32) uint32
    
    //go:noescape
    func LoadAcq64(ptr *uint64) uint64
    
    //go:noescape
    func LoadAcquintptr(ptr *uintptr) uintptr
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. src/internal/runtime/atomic/atomic_s390x.go

    //go:linkname Load64
    
    //go:nosplit
    //go:noinline
    func Load(ptr *uint32) uint32 {
    	return *ptr
    }
    
    //go:nosplit
    //go:noinline
    func Loadp(ptr unsafe.Pointer) unsafe.Pointer {
    	return *(*unsafe.Pointer)(ptr)
    }
    
    //go:nosplit
    //go:noinline
    func Load8(ptr *uint8) uint8 {
    	return *ptr
    }
    
    //go:nosplit
    //go:noinline
    func Load64(ptr *uint64) uint64 {
    	return *ptr
    }
    
    //go:nosplit
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. src/internal/runtime/atomic/atomic_mips64x.go

    //go:noescape
    func Load8(ptr *uint8) uint8
    
    //go:noescape
    func Load64(ptr *uint64) uint64
    
    // NO go:noescape annotation; *ptr escapes if result escapes (#31525)
    func Loadp(ptr unsafe.Pointer) unsafe.Pointer
    
    //go:noescape
    func LoadAcq(ptr *uint32) uint32
    
    //go:noescape
    func LoadAcq64(ptr *uint64) uint64
    
    //go:noescape
    func LoadAcquintptr(ptr *uintptr) uintptr
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 21:29:34 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. pkg/registry/discovery/endpointslice/strategy_test.go

    						NodeName: ptr.To("node-4"),
    					},
    				},
    			},
    			expectedEPS: &discovery.EndpointSlice{
    				Endpoints: []discovery.Endpoint{
    					{
    						Hostname: ptr.To("hostname-1"),
    						NodeName: ptr.To("valid-node-1"),
    					},
    					{
    						Hostname: ptr.To("hostname-2"),
    					},
    					{
    						Hostname: ptr.To("hostname-3"),
    						NodeName: ptr.To("node-3"),
    					},
    					{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  7. src/runtime/atomic_pointer.go

    //
    //go:linkname atomicwb
    //go:nosplit
    func atomicwb(ptr *unsafe.Pointer, new unsafe.Pointer) {
    	slot := (*uintptr)(unsafe.Pointer(ptr))
    	buf := getg().m.p.ptr().wbBuf.get2()
    	buf[0] = *slot
    	buf[1] = uintptr(new)
    }
    
    // atomicstorep performs *ptr = new atomically and invokes a write barrier.
    //
    //go:nosplit
    func atomicstorep(ptr unsafe.Pointer, new unsafe.Pointer) {
    	if writeBarrier.enabled {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. src/runtime/unsafe.go

    	"runtime/internal/math"
    	"unsafe"
    )
    
    func unsafestring(ptr unsafe.Pointer, len int) {
    	if len < 0 {
    		panicunsafestringlen()
    	}
    
    	if uintptr(len) > -uintptr(ptr) {
    		if ptr == nil {
    			panicunsafestringnilptr()
    		}
    		panicunsafestringlen()
    	}
    }
    
    // Keep this code in sync with cmd/compile/internal/walk/builtin.go:walkUnsafeString
    func unsafestring64(ptr unsafe.Pointer, len64 int64) {
    	len := int(len64)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:51:18 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewrite386splitload.go

    	// match: (CMPLload {sym} [off] ptr x mem)
    	// result: (CMPL (MOVLload {sym} [off] ptr mem) x)
    	for {
    		off := auxIntToInt32(v.AuxInt)
    		sym := auxToSym(v.Aux)
    		ptr := v_0
    		x := v_1
    		mem := v_2
    		v.reset(Op386CMPL)
    		v0 := b.NewValue0(v.Pos, Op386MOVLload, typ.UInt32)
    		v0.AuxInt = int32ToAuxInt(off)
    		v0.Aux = symToAux(sym)
    		v0.AddArg2(ptr, mem)
    		v.AddArg2(v0, x)
    		return true
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/RISCV64.rules

    (Load <t> ptr mem) && (is32BitInt(t) && !t.IsSigned()) => (MOVWUload ptr mem)
    (Load <t> ptr mem) && (is64BitInt(t) || isPtr(t))      => (MOVDload  ptr mem)
    (Load <t> ptr mem) &&  is32BitFloat(t)                 => (FMOVWload ptr mem)
    (Load <t> ptr mem) &&  is64BitFloat(t)                 => (FMOVDload ptr mem)
    
    // Stores
    (Store {t} ptr val mem) && t.Size() == 1 => (MOVBstore ptr val mem)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 40.3K bytes
    - Viewed (0)
Back to top