Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,460 for uintptr1 (0.21 sec)

  1. src/runtime/mfinal_test.go

    func adjChunks() (*objtype, *objtype) {
    	var s []*objtype
    
    	for {
    		c := new(objtype)
    		for _, d := range s {
    			if uintptr(unsafe.Pointer(c))+unsafe.Sizeof(*c) == uintptr(unsafe.Pointer(d)) {
    				return c, d
    			}
    			if uintptr(unsafe.Pointer(d))+unsafe.Sizeof(*c) == uintptr(unsafe.Pointer(c)) {
    				return d, c
    			}
    		}
    		s = append(s, c)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 20:45:58 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  2. src/runtime/traceback.go

    // pointer to a struct:
    //
    //	struct {
    //		Context    uintptr
    //		SigContext uintptr
    //		Buf        *uintptr
    //		Max        uintptr
    //	}
    //
    // In C syntax, this struct will be
    //
    //	struct {
    //		uintptr_t  Context;
    //		uintptr_t  SigContext;
    //		uintptr_t* Buf;
    //		uintptr_t  Max;
    //	};
    //
    // The Context field will be zero to gather a traceback from the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  3. src/internal/reflectlite/set_test.go

    	t any
    	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: Mon Dec 13 18:45:54 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  4. src/runtime/lock_sema.go

    			// Someone else has it.
    			// l->waitm points to a linked list of M's waiting
    			// for this lock, chained through m->nextwaitm.
    			// Queue this M.
    			for {
    				gp.m.nextwaitm = muintptr(v &^ locked)
    				if atomic.Casuintptr(&l.key, v, uintptr(unsafe.Pointer(gp.m))|locked) {
    					break
    				}
    				v = atomic.Loaduintptr(&l.key)
    				if v&locked == 0 {
    					continue Loop
    				}
    			}
    			if v&locked != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testsanitizers/testdata/msan6.go

    }
    
    // F1 marks a chunk of stack as uninitialized.
    // C.f returns an uninitialized struct on the stack, so msan will mark
    // the stack as uninitialized.
    //
    //go:noinline
    func F1() uintptr {
    	s := C.f()
    	return uintptr(s.a[0])
    }
    
    // F2 allocates a struct on the stack and converts it to an empty interface,
    // which will call msanread and see that the data appears uninitialized.
    //
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/dec.rules

        (Load <typ.Int>
          (OffPtr <typ.IntPtr> [config.PtrSize] ptr)
          mem)
        (Load <typ.Int>
          (OffPtr <typ.IntPtr> [2*config.PtrSize] ptr)
          mem))
    (Store {t} dst (SliceMake ptr len cap) mem) =>
      (Store {typ.Int}
        (OffPtr <typ.IntPtr> [2*config.PtrSize] dst)
        cap
        (Store {typ.Int}
          (OffPtr <typ.IntPtr> [config.PtrSize] dst)
          len
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:48:31 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  7. src/runtime/vdso_linux.go

    	// but contain uintptrs
    	vdsoBloomSizeScale = unsafe.Sizeof(uintptr(0)) / 4 // uint32
    )
    
    /* How to extract and insert information held in the st_info field.  */
    func _ELF_ST_BIND(val byte) byte { return val >> 4 }
    func _ELF_ST_TYPE(val byte) byte { return val & 0xf }
    
    type vdsoSymbolKey struct {
    	name    string
    	symHash uint32
    	gnuHash uint32
    	ptr     *uintptr
    }
    
    type vdsoVersionKey struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 19:32:35 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  8. src/testing/quick/quick_test.go

    func fUint(a uint) uint { return a }
    
    type TestUintAlias uint
    
    func fUintAlias(a TestUintAlias) TestUintAlias { return a }
    
    func fUintptr(a uintptr) uintptr { return a }
    
    type TestUintptrAlias uintptr
    
    func fUintptrAlias(a TestUintptrAlias) TestUintptrAlias { return a }
    
    func reportError(property string, err error, t *testing.T) {
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 12:54:00 UTC 2019
    - 9K bytes
    - Viewed (0)
  9. 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)
  10. src/runtime/cgo/gcc_libinit.c

    }
    
    // _cgo_set_stacklo sets g->stacklo based on the stack size.
    // This is common code called from x_cgo_init, which is itself
    // called by rt0_go in the runtime package.
    void _cgo_set_stacklo(G *g, uintptr *pbounds)
    {
    	uintptr bounds[2];
    
    	// pbounds can be passed in by the caller; see gcc_linux_amd64.c.
    	if (pbounds == NULL) {
    		pbounds = &bounds[0];
    	}
    
    	x_cgo_getstackbound(pbounds);
    
    	g->stacklo = *pbounds;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 01:07:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top