- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 359 for uintptr1 (0.19 sec)
-
test/escape_reflect.go
return v.Addr() } // functions returning pointer as uintptr have to escape. func uintptr1(x *int) uintptr { // ERROR "leaking param: x$" v := reflect.ValueOf(x) return v.Pointer() } func unsafeaddr(x *int) uintptr { // ERROR "leaking param: x$" v := reflect.ValueOf(x).Elem() return v.UnsafeAddr() } func ifacedata(x any) [2]uintptr { // ERROR "moved to heap: x" v := reflect.ValueOf(&x).Elem()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:50:24 UTC 2023 - 13.1K bytes - Viewed (0) -
src/runtime/runtime2.go
return atomic.Casuintptr((*uintptr)(unsafe.Pointer(gp)), uintptr(old), uintptr(new)) } //go:nosplit func (gp *g) guintptr() guintptr { return guintptr(unsafe.Pointer(gp)) } // setGNoWB performs *gp = new without a write barrier. // For times when it's impractical to use a guintptr. // //go:nosplit //go:nowritebarrier func setGNoWB(gp **g, new *g) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:57:37 UTC 2024 - 47.9K bytes - Viewed (0) -
src/cmd/compile/internal/test/inl_test.go
"(*Uint32).Swap", "(*Uint64).Add", "(*Uint64).CompareAndSwap", "(*Uint64).Load", "(*Uint64).Store", "(*Uint64).Swap", "(*Uintptr).Add", "(*Uintptr).CompareAndSwap", "(*Uintptr).Load", "(*Uintptr).Store", "(*Uintptr).Swap", "(*Pointer[go.shape.int]).CompareAndSwap", "(*Pointer[go.shape.int]).Load", "(*Pointer[go.shape.int]).Store", "(*Pointer[go.shape.int]).Swap",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 04:07:57 UTC 2024 - 10.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go
int pwrite64(int, uintptr_t, size_t, long long); #define c_select select int select(int, uintptr_t, uintptr_t, uintptr_t, uintptr_t); int pselect(int, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t); int setregid(int, int); int setreuid(int, int); int shutdown(int, int); long long splice(int, uintptr_t, int, uintptr_t, int, int); int stat(uintptr_t, uintptr_t); int statfs(uintptr_t, uintptr_t); int truncate(uintptr_t, long long);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 30.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go
int pwrite64(int, uintptr_t, size_t, long long); #define c_select select int select(int, uintptr_t, uintptr_t, uintptr_t, uintptr_t); int pselect(int, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t); int setregid(int, int); int setreuid(int, int); int shutdown(int, int); long long splice(int, uintptr_t, int, uintptr_t, int, int); int stat(uintptr_t, uintptr_t); int statfs(uintptr_t, uintptr_t); int truncate(uintptr_t, long long);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 35.7K bytes - Viewed (0) -
src/runtime/syscall_windows_test.go
var cbFuncs = []cbFunc{ {func(i1, i2 uintptr) uintptr { return i1 + i2 }}, {func(i1, i2, i3 uintptr) uintptr { return i1 + i2 + i3 }}, {func(i1, i2, i3, i4 uintptr) uintptr { return i1 + i2 + i3 + i4 }}, {func(i1, i2, i3, i4, i5 uintptr) uintptr { return i1 + i2 + i3 + i4 + i5 }}, {func(i1, i2, i3, i4, i5, i6 uintptr) uintptr { return i1 + i2 + i3 + i4 + i5 + i6 }},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 31 16:31:35 UTC 2023 - 32.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/config.go
t.UInt = types.Types[types.TUINT] t.Uintptr = types.Types[types.TUINTPTR] t.String = types.Types[types.TSTRING] t.BytePtr = types.NewPtr(types.Types[types.TUINT8]) t.Int32Ptr = types.NewPtr(types.Types[types.TINT32]) t.UInt32Ptr = types.NewPtr(types.Types[types.TUINT32]) t.IntPtr = types.NewPtr(types.Types[types.TINT]) t.UintptrPtr = types.NewPtr(types.Types[types.TUINTPTR])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 16:11:47 UTC 2024 - 12.9K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/rewritedec.go
// cond: t.IsInterface() // result: @x.Block (Load <typ.Uintptr> ptr mem) for { x := v_0 if x.Op != OpLoad { break } t := x.Type mem := x.Args[1] ptr := x.Args[0] if !(t.IsInterface()) { break } b = x.Block v0 := b.NewValue0(v.Pos, OpLoad, typ.Uintptr) v.copyOf(v0) v0.AddArg2(ptr, mem) return true } return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 00:48:31 UTC 2023 - 24.9K bytes - Viewed (0) -
src/unsafe/unsafe.go
// } // // (2) Conversion of a Pointer to a uintptr (but not back to Pointer). // // Converting a Pointer to a uintptr produces the memory address of the value // pointed at, as an integer. The usual use for such a uintptr is to print it. // // Conversion of a uintptr back to Pointer is not valid in general. // // A uintptr is an integer, not a reference. // Converting a Pointer to a uintptr creates an integer value
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 19:45:20 UTC 2024 - 12.1K bytes - Viewed (0) -
src/cmd/compile/internal/walk/builtin.go
// with same elem.Width for the from slice. size := ir.NewBinaryExpr(base.Pos, ir.OMUL, typecheck.Conv(length, types.Types[types.TUINTPTR]), typecheck.Conv(ir.NewInt(base.Pos, t.Elem().Size()), types.Types[types.TUINTPTR])) // instantiate mallocgc(size uintptr, typ *byte, needszero bool) unsafe.Pointer fn := typecheck.LookupRuntime("mallocgc")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 22:35:22 UTC 2024 - 31.2K bytes - Viewed (0)