Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,460 for uintptr1 (0.17 sec)

  1. src/runtime/sys_darwin_amd64.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
    - 19.7K bytes
    - Viewed (0)
  2. src/runtime/mbitmap.go

    	if src == 0 {
    		for {
    			var addr uintptr
    			if tp, addr = tp.next(dst + size); addr == 0 {
    				break
    			}
    			dstx := (*uintptr)(unsafe.Pointer(addr))
    			p := buf.get1()
    			p[0] = *dstx
    		}
    	} else {
    		for {
    			var addr uintptr
    			if tp, addr = tp.next(dst + size); addr == 0 {
    				break
    			}
    			dstx := (*uintptr)(unsafe.Pointer(addr))
    			srcx := (*uintptr)(unsafe.Pointer(src + (addr - dst)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  3. src/runtime/netpoll.go

    //	pdNil - none of the above.
    const (
    	pdNil   uintptr = 0
    	pdReady uintptr = 1
    	pdWait  uintptr = 2
    )
    
    const pollBlockSize = 4 * 1024
    
    // Network poller descriptor.
    //
    // No heap pointers.
    type pollDesc struct {
    	_     sys.NotInHeap
    	link  *pollDesc      // in pollcache, protected by pollcache.lock
    	fd    uintptr        // constant for pollDesc usage lifetime
    	fdseq atomic.Uintptr // protects against stale pollDesc
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/test.go

    	s.P = &si
    	C.setstruct(s)
    
    	if uintptr(unsafe.Pointer(&x))&^0xfff == uintptr(unsafe.Pointer(&z))&^0xfff {
    		t.Error("C int* argument on stack")
    	}
    	if uintptr(unsafe.Pointer(&y))&^0xfff == uintptr(unsafe.Pointer(&z))&^0xfff {
    		t.Error("C intptr argument on stack")
    	}
    	if uintptr(unsafe.Pointer(&v))&^0xfff == uintptr(unsafe.Pointer(&z))&^0xfff {
    		t.Error("C void* argument on stack")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  5. src/runtime/stack.go

    		print("stackalloc ", n, "\n")
    	}
    
    	if debug.efence != 0 || stackFromSystem != 0 {
    		n = uint32(alignUp(uintptr(n), physPageSize))
    		v := sysAlloc(uintptr(n), &memstats.stacks_sys)
    		if v == nil {
    			throw("out of memory (stackalloc)")
    		}
    		return stack{uintptr(v), uintptr(v) + uintptr(n)}
    	}
    
    	// Small stacks are allocated with a fixed-size free-list allocator.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/testx.go

    		t.Errorf("C.CheckIssue6907C() == %d, want %d", got, 1)
    	}
    }
    
    // issue 7665
    
    var bad7665 unsafe.Pointer = C.f7665
    var good7665 uintptr = uintptr(C.f7665)
    
    func test7665(t *testing.T) {
    	if bad7665 == nil || uintptr(bad7665) != good7665 {
    		t.Errorf("ptrs = %p, %#x, want same non-nil pointer", bad7665, good7665)
    	}
    }
    
    // issue 7978
    
    var issue7978sync uint32
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/writebarrier.go

    		addEntry := func(pos src.XPos, v *Value) {
    			if curCall == nil || curCall.AuxInt == maxEntries {
    				t := types.NewTuple(types.Types[types.TUINTPTR].PtrTo(), types.TypeMem)
    				curCall = bThen.NewValue1(pos, OpWB, t, memThen)
    				curPtr = bThen.NewValue1(pos, OpSelect0, types.Types[types.TUINTPTR].PtrTo(), curCall)
    				memThen = bThen.NewValue1(pos, OpSelect1, types.TypeMem, curCall)
    			}
    			// Store value in write buffer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 23.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ir/func.go

    		var e Node = NewLinksymExpr(pos, name.LinksymABI(abi), types.Types[types.TUINTPTR])
    		e = NewAddrExpr(pos, e)
    		e.SetType(types.Types[types.TUINTPTR].PtrTo())
    		e = NewConvExpr(pos, OCONVNOP, types.Types[types.TUINTPTR], e)
    		e.SetTypecheck(1)
    		return e
    	}
    	// fn is not a defined function. It must be ABIInternal.
    	// Read the address from func value, i.e. *(*uintptr)(idata(fn)).
    	if wantABI != obj.ABIInternal {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go

    func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
    	var _p0 unsafe.Pointer
    	if len(mib) > 0 {
    		_p0 = unsafe.Pointer(&mib[0])
    	} else {
    		_p0 = unsafe.Pointer(&_zero)
    	}
    	_, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
    	if e1 != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go

    func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
    	var _p0 unsafe.Pointer
    	if len(mib) > 0 {
    		_p0 = unsafe.Pointer(&mib[0])
    	} else {
    		_p0 = unsafe.Pointer(&_zero)
    	}
    	_, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
    	if e1 != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 57.5K bytes
    - Viewed (0)
Back to top