- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,460 for uintptr1 (0.33 sec)
-
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/cmd/compile/internal/ssa/fuse_test.go
Bloc("entry", Valu("mem", OpInitMem, types.TypeMem, 0, nil), Valu("c1", OpArg, c.config.Types.Bool, 0, nil), Valu("p", OpArg, c.config.Types.IntPtr, 0, nil), If("c1", "z0", "exit")), Bloc("z0", Valu("nilcheck", OpNilCheck, c.config.Types.IntPtr, 0, nil, "p", "mem"), Goto("exit")), Bloc("exit", Exit("mem"), )) CheckFunc(fun.f) fuseLate(fun.f) z0, ok := fun.blocks["z0"]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 20:45:54 UTC 2023 - 7.4K 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/reflect/set_test.go
b bool }{ {new(chan int), new(<-chan int), true}, {new(<-chan int), new(chan int), false}, {new(*int), new(IntPtr), true}, {new(IntPtr), new(*int), true}, {new(IntPtr), new(IntPtr1), false}, {new(Ch), new(<-chan any), true}, // test runs implementsTests too } type IntPtr *int type IntPtr1 *int type Ch <-chan any func TestAssignableTo(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 13:56:11 UTC 2022 - 5.7K 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) -
src/runtime/sys_darwin_arm64.s
// syscall9 takes a pointer to a struct like: // struct { // fn uintptr // a1 uintptr // a2 uintptr // a3 uintptr // a4 uintptr // a5 uintptr // a6 uintptr // a7 uintptr // a8 uintptr // a9 uintptr // r1 uintptr // r2 uintptr // err uintptr // } // syscall9 must be called on the g0 stack with the // C calling convention (use libcCall).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 03 16:07:59 UTC 2023 - 18.3K bytes - Viewed (0) -
src/runtime/export_test.go
// Expose pageAlloc for testing. Note that because pageAlloc is // not in the heap, so is PageAlloc. type PageAlloc pageAlloc func (p *PageAlloc) Alloc(npages uintptr) (uintptr, uintptr) { pp := (*pageAlloc)(p) var addr, scav uintptr systemstack(func() { // None of the tests need any higher-level locking, so we just // take the lock internally. lock(pp.mheapLock) addr, scav = pp.alloc(npages)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0) -
src/cmd/compile/internal/types/universe.go
{"string", TSTRING}, } var typedefs = [...]struct { name string etype Kind sameas32 Kind sameas64 Kind }{ {"int", TINT, TINT32, TINT64}, {"uint", TUINT, TUINT32, TUINT64}, {"uintptr", TUINTPTR, TUINT32, TUINT64}, } func InitTypes(defTypeName func(sym *Sym, typ *Type) Object) { if PtrSize == 0 { base.Fatalf("InitTypes called before PtrSize was set") } SlicePtrOffset = 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:56:49 UTC 2023 - 4K bytes - Viewed (0) -
src/runtime/profbuf.go
// wraparound we might need to stop early and return the rest // in the next call. di := 0 ti := 0 for di < len(data) && data[di] != 0 && ti < len(tags) { if uintptr(di)+uintptr(data[di]) > uintptr(len(data)) { throw("runtime: malformed profBuf buffer - invalid size") } di += int(data[di]) ti++ } // Remember how much we returned, to commit read on next call.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 18.2K bytes - Viewed (0) -
src/cmd/compile/internal/walk/range.go
// // To avoid this, we keep the "pointer" alternately in 2 variables, one // pointer typed and one uintptr typed. Most of the time it lives in the // regular pointer variable, but when it might be out of bounds (after it // has been incremented, but before the loop condition has been checked) // it lives briefly in the uintptr variable. // // hp contains the pointer version (of type *T, where T is the element type).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:33 UTC 2023 - 17.6K bytes - Viewed (0)