Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 652 for ptr (0.04 sec)

  1. src/cmd/compile/internal/ssa/rewriteARM.go

    	// match: (MOVBUloadidx ptr (MOVWconst [c]) mem)
    	// result: (MOVBUload [c] ptr mem)
    	for {
    		ptr := v_0
    		if v_1.Op != OpARMMOVWconst {
    			break
    		}
    		c := auxIntToInt32(v_1.AuxInt)
    		mem := v_2
    		v.reset(OpARMMOVBUload)
    		v.AuxInt = int32ToAuxInt(c)
    		v.AddArg2(ptr, mem)
    		return true
    	}
    	// match: (MOVBUloadidx (MOVWconst [c]) ptr mem)
    	// result: (MOVBUload [c] ptr mem)
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 486.8K bytes
    - Viewed (0)
  2. 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)
  3. pkg/proxy/apis/config/v1alpha1/defaults_test.go

    					QPS:         5,
    					Burst:       10,
    				},
    				IPTables: kubeproxyconfigv1alpha1.KubeProxyIPTablesConfiguration{
    					MasqueradeBit:      ptr.To[int32](14),
    					MasqueradeAll:      false,
    					LocalhostNodePorts: ptr.To(true),
    					SyncPeriod:         metav1.Duration{Duration: 30 * time.Second},
    					MinSyncPeriod:      metav1.Duration{Duration: 1 * time.Second},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:33:53 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  4. src/runtime/mem_sbrk.go

    		bp.size += p.next.ptr().size
    		bp.next = p.next.ptr().next
    		*p.next.ptr() = memHdr{}
    	} else {
    		bp.next = p.next
    	}
    	if uintptr(unsafe.Pointer(p))+p.size == bpn {
    		p.size += bp.size
    		p.next = bp.next
    		*bp = memHdr{}
    	} else {
    		p.next.set(bp)
    	}
    }
    
    func memCheck() {
    	if !memDebug {
    		return
    	}
    	for p := memFreelist.ptr(); p != nil && p.next != 0; p = p.next.ptr() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. src/syscall/syscall_unix.go

    }
    
    func sendtoInet6(fd int, p []byte, flags int, to *SockaddrInet6) (err error) {
    	ptr, n, err := to.sockaddr()
    	if err != nil {
    		return err
    	}
    	return sendto(fd, p, flags, ptr, n)
    }
    
    func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error) {
    	var (
    		ptr   unsafe.Pointer
    		salen _Socklen
    	)
    	if to != nil {
    		ptr, salen, err = to.sockaddr()
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 16:19:26 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. test/fixedbugs/issue13160.go

    	// and make sure they are valid.
    	for i := 0; i < p; i++ {
    		i := i
    		go func() {
    			for j := 0; j < N; j++ {
    				var ptr [1]*int
    				copy(ptr[:], collider[i:i+1])
    				if ptr[0] != nil && ptr[0] != ptrs[i] {
    					panic(fmt.Sprintf("bad pointer read %p!", ptr[0]))
    				}
    			}
    			done <- struct{}{}
    		}()
    	}
    	for i := 0; i < 2*p; i++ {
    		<-done
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  7. src/runtime/string.go

    	}
    	memmove(p, unsafe.Pointer(ptr), uintptr(n))
    	return unsafe.String((*byte)(p), n)
    }
    
    // stringDataOnStack reports whether the string's data is
    // stored on the current goroutine's stack.
    func stringDataOnStack(s string) bool {
    	ptr := uintptr(unsafe.Pointer(unsafe.StringData(s)))
    	stk := getg().stack
    	return stk.lo <= ptr && ptr < stk.hi
    }
    
    func rawstringtmp(buf *tmpBuf, l int) (s string, b []byte) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/rewriteRISCV64.go

    		v1.AddArg3(ptr, v0, mem)
    		v.AddArg3(ptr, v0, v1)
    		return true
    	}
    	// match: (Zero [4] ptr mem)
    	// result: (MOVBstore [3] ptr (MOVDconst [0]) (MOVBstore [2] ptr (MOVDconst [0]) (MOVBstore [1] ptr (MOVDconst [0]) (MOVBstore ptr (MOVDconst [0]) mem))))
    	for {
    		if auxIntToInt64(v.AuxInt) != 4 {
    			break
    		}
    		ptr := v_0
    		mem := v_1
    		v.reset(OpRISCV64MOVBstore)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 205.1K bytes
    - Viewed (0)
  9. istioctl/pkg/cli/context.go

    }
    
    func NewCLIContext(rootFlags *RootFlags) Context {
    	if rootFlags == nil {
    		rootFlags = &RootFlags{
    			kubeconfig:       ptr.Of[string](""),
    			configContext:    ptr.Of[string](""),
    			namespace:        ptr.Of[string](""),
    			istioNamespace:   ptr.Of[string](""),
    			defaultNamespace: "",
    		}
    	}
    	return &instance{
    		RootFlags: *rootFlags,
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/controller_ref.go

    func GetControllerOf(controllee Object) *OwnerReference {
    	ref := GetControllerOfNoCopy(controllee)
    	if ref == nil {
    		return nil
    	}
    	cp := *ref
    	cp.Controller = ptr.To(*ref.Controller)
    	if ref.BlockOwnerDeletion != nil {
    		cp.BlockOwnerDeletion = ptr.To(*ref.BlockOwnerDeletion)
    	}
    	return &cp
    }
    
    // GetControllerOfNoCopy returns a pointer to the controllerRef if controllee has a controller
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 05:14:33 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top