Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 491 for uptr (0.04 sec)

  1. src/runtime/race_ppc64le.s

    	GO_ARGS
    	// void __tsan_go_atomic32_load(ThreadState *thr, uptr cpc, uptr pc, u8 *a);
    	MOVD	$__tsan_go_atomic32_load(SB), R8
    	ADD	$32, R1, R6	// addr of caller's 1st arg
    	BR	racecallatomic<>(SB)
    	RET
    
    TEXT	sync∕atomic·LoadInt64(SB), NOSPLIT, $0-16
    	GO_ARGS
    	// void __tsan_go_atomic64_load(ThreadState *thr, uptr cpc, uptr pc, u8 *a);
    	MOVD	$__tsan_go_atomic64_load(SB), R8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 17K bytes
    - Viewed (0)
  2. src/runtime/debuglog.go

    			sl -= uint64(len(b))
    			gwrite(b)
    		}
    
    	case debugLogConstString:
    		len, ptr := int(r.uvarint()), uintptr(r.uvarint())
    		ptr += firstmoduledata.etext
    		// We can't use unsafe.String as it may panic, which isn't safe
    		// in this (potentially) nowritebarrier context.
    		str := stringStruct{
    			str: unsafe.Pointer(ptr),
    			len: len,
    		}
    		s := *(*string)(unsafe.Pointer(&str))
    		print(s)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  3. src/runtime/slice_test.go

    				for j := 0; j < C; j++ {
    					sByte = append(sByte, 0x77)
    				}
    			}
    		})
    
    		b.Run("1Ptr", func(b *testing.B) {
    			for i := 0; i < b.N; i++ {
    				s1Ptr = make([]uintptr, C)
    				for j := 0; j < C; j++ {
    					s1Ptr = append(s1Ptr, 0x77)
    				}
    			}
    		})
    
    		b.Run("2Ptr", func(b *testing.B) {
    			for i := 0; i < b.N; i++ {
    				s2Ptr = make([][2]uintptr, C)
    				for j := 0; j < C; j++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 17 09:45:44 UTC 2020
    - 10.3K bytes
    - Viewed (0)
  4. src/encoding/xml/read_test.go

    }
    
    const (
    	emptyXML = `
    <Parent>
        <I></I>
        <IPtr></IPtr>
        <Is></Is>
        <IPtrs></IPtrs>
        <F></F>
        <FPtr></FPtr>
        <Fs></Fs>
        <FPtrs></FPtrs>
        <B></B>
        <BPtr></BPtr>
        <Bs></Bs>
        <BPtrs></BPtrs>
        <Bytes></Bytes>
        <BytesPtr></BytesPtr>
        <S></S>
        <SPtr></SPtr>
        <Ss></Ss>
        <SPtrs></SPtrs>
        <MyI></MyI>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/conversion/queryparams/convert_test.go

    		},
    		{
    			input: &baz{
    				Ptr:  intp(5),
    				Bptr: boolp(true),
    			},
    			expected: url.Values{"ptr": {"5"}, "bptr": {"true"}},
    		},
    		{
    			input: &baz{
    				Bptr: boolp(true),
    			},
    			expected: url.Values{"ptr": {""}, "bptr": {"true"}},
    		},
    		{
    			input: &baz{
    				Ptr: intp(5),
    			},
    			expected: url.Values{"ptr": {"5"}},
    		},
    		{
    			input: &childStructs{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 03 07:01:02 UTC 2018
    - 6.2K bytes
    - Viewed (0)
  6. src/runtime/map_faststr.go

    	if h.B == 0 {
    		// One-bucket table.
    		b := (*bmap)(h.buckets)
    		if key.len < 32 {
    			// short key, doing lots of comparisons is ok
    			for i, kptr := uintptr(0), b.keys(); i < abi.MapBucketCount; i, kptr = i+1, add(kptr, 2*goarch.PtrSize) {
    				k := (*stringStruct)(kptr)
    				if k.len != key.len || isEmpty(b.tophash[i]) {
    					if b.tophash[i] == emptyRest {
    						break
    					}
    					continue
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/pledge_openbsd.go

    func Pledge(promises, execpromises string) error {
    	if err := pledgeAvailable(); err != nil {
    		return err
    	}
    
    	pptr, err := BytePtrFromString(promises)
    	if err != nil {
    		return err
    	}
    
    	exptr, err := BytePtrFromString(execpromises)
    	if err != nil {
    		return err
    	}
    
    	return pledge(pptr, exptr)
    }
    
    // PledgePromises implements the pledge syscall.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/writebarrier.go

    }
    
    // needWBdst reports whether GC needs to see what used to be in *ptr when ptr is
    // the target of a pointer store.
    func needWBdst(ptr, mem *Value, zeroes map[ID]ZeroRegion) bool {
    	// Detect storing to zeroed memory.
    	var off int64
    	for ptr.Op == OpOffPtr {
    		off += ptr.AuxInt
    		ptr = ptr.Args[0]
    	}
    	ptrSize := ptr.Block.Func.Config.PtrSize
    	if off%ptrSize != 0 {
    		return true // see issue 61187
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 23.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types/universe.go

    	Types[TUNSAFEPTR] = defBasic(TUNSAFEPTR, UnsafePkg, "Pointer")
    
    	Types[TBLANK] = newType(TBLANK)
    	Types[TNIL] = newType(TNIL)
    
    	// simple aliases
    	SimType[TMAP] = TPTR
    	SimType[TCHAN] = TPTR
    	SimType[TFUNC] = TPTR
    	SimType[TUNSAFEPTR] = TPTR
    
    	for et := TINT8; et <= TUINT64; et++ {
    		IsInt[et] = true
    	}
    	IsInt[TINT] = true
    	IsInt[TUINT] = true
    	IsInt[TUINTPTR] = true
    
    	IsFloat[TFLOAT32] = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 4K bytes
    - Viewed (0)
  10. test/fixedbugs/issue15528.go

    		s := fmt.Sprintf("%[1]T %#[1]v %[1]s", test.x)
    		if s != test.s {
    			fmt.Printf("iface(%d)=%q want %q\n", i, s, test.s)
    			fail = true
    		}
    	}
    
    	if got := *(iptr.(*int)); got != 1 {
    		fmt.Printf("bad int ptr %d\n", got)
    		fail = true
    	}
    
    	f.(func())()
    	f.(func())()
    	f.(func())()
    	if clos != 3 {
    		fmt.Printf("bad closure exec %d\n", clos)
    		fail = true
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 12 14:31:26 UTC 2016
    - 3.1K bytes
    - Viewed (0)
Back to top