Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for uintptr (0.29 sec)

  1. src/cmd/cgo/gcc.go

    	c.int32 = c.Ident("int32")
    	c.int64 = c.Ident("int64")
    	c.uint8 = c.Ident("uint8")
    	c.uint16 = c.Ident("uint16")
    	c.uint32 = c.Ident("uint32")
    	c.uint64 = c.Ident("uint64")
    	c.uintptr = c.Ident("uintptr")
    	c.float32 = c.Ident("float32")
    	c.float64 = c.Ident("float64")
    	c.complex64 = c.Ident("complex64")
    	c.complex128 = c.Ident("complex128")
    	c.void = c.Ident("void")
    	c.string = c.Ident("string")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/debug.go

    //
    //	b1:
    //	  v4 = ArgIntReg <uintptr> {s+8} [0] : BX
    //	  v5 = ArgIntReg <int> {used} [0] : CX
    //
    // While this is an accurate picture of the live incoming params,
    // we also want to have debug locations for non-live params (or
    // their non-live pieces), e.g. something like
    //
    //	b1:
    //	  v9 = ArgIntReg <*uint8> {s+0} [0] : AX
    //	  v4 = ArgIntReg <uintptr> {s+8} [0] : BX
    //	  v5 = ArgIntReg <int> {used} [0] : CX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 58.4K bytes
    - Viewed (0)
  3. src/cmd/cgo/out.go

    	fmt.Fprint(fgo2, "//go:cgo_unsafe_args\n")
    	conf.Fprint(fgo2, fset, d)
    	fmt.Fprint(fgo2, " {\n")
    
    	// NOTE: Using uintptr to hide from escape analysis.
    	arg := "0"
    	if len(paramnames) > 0 {
    		arg = "uintptr(unsafe.Pointer(&p0))"
    	} else if !void {
    		arg = "uintptr(unsafe.Pointer(&r1))"
    	}
    
    	noCallback := p.noCallbacks[n.C]
    	if noCallback {
    		// disable cgocallback, will check it in runtime.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    		2: {"-", 10, ""},
    		3: {"gopher", 0, ""},
    		4: {"-", -1, "negative"},
    		5: {"--", -102, "negative"},
    		6: {string(make([]byte, 255)), int((^uint(0))/255 + 1), "overflow"},
    	})
    
    	const is64Bit = 1<<(^uintptr(0)>>63)/2 != 0
    	if !is64Bit {
    		return
    	}
    
    	runTestCases("64-bit", []testCase{
    		0: {"-", maxInt, "out of range"},
    	})
    }
    
    func runesEqual(a, b []rune) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewritedec64.go

    	// result: (Int64Make (Load <typ.UInt32> (OffPtr <typ.UInt32Ptr> [4] ptr) mem) (Load <typ.UInt32> ptr mem))
    	for {
    		t := v.Type
    		ptr := v_0
    		mem := v_1
    		if !(is64BitInt(t) && !config.BigEndian && !t.IsSigned()) {
    			break
    		}
    		v.reset(OpInt64Make)
    		v0 := b.NewValue0(v.Pos, OpLoad, typ.UInt32)
    		v1 := b.NewValue0(v.Pos, OpOffPtr, typ.UInt32Ptr)
    		v1.AuxInt = int64ToAuxInt(4)
    		v1.AddArg(ptr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 65.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types/type.go

    }
    
    // IsUnsafePtr reports whether t is an unsafe pointer.
    func (t *Type) IsUnsafePtr() bool {
    	return t.kind == TUNSAFEPTR
    }
    
    // IsUintptr reports whether t is a uintptr.
    func (t *Type) IsUintptr() bool {
    	return t.kind == TUINTPTR
    }
    
    // IsPtrShaped reports whether t is represented by a single machine pointer.
    // In addition to regular Go pointer types, this includes map, channel, and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
Back to top