Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 939 for oldR (0.26 sec)

  1. src/internal/runtime/atomic/atomic_andor_test.go

    	"testing"
    )
    
    func TestAnd32(t *testing.T) {
    	// Basic sanity check.
    	x := uint32(0xffffffff)
    	for i := uint32(0); i < 32; i++ {
    		old := x
    		v := atomic.And32(&x, ^(1 << i))
    		if r := uint32(0xffffffff) << (i + 1); x != r || v != old {
    			t.Fatalf("clearing bit %#x: want %#x, got new %#x and old %#v", uint32(1<<i), r, x, v)
    		}
    	}
    
    	// Set every bit in array to 1.
    	a := make([]uint32, 1<<12)
    	for i := range a {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 27 20:49:32 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. src/internal/runtime/atomic/atomic_loong64.s

    // license that can be found in the LICENSE file.
    
    #include "textflag.h"
    
    // bool cas(uint32 *ptr, uint32 old, uint32 new)
    // Atomically:
    //	if(*ptr == old){
    //		*ptr = new;
    //		return 1;
    //	} else
    //		return 0;
    TEXT ·Cas(SB), NOSPLIT, $0-17
    	MOVV	ptr+0(FP), R4
    	MOVW	old+8(FP), R5
    	MOVW	new+12(FP), R6
    	DBAR
    cas_again:
    	MOVV	R6, R7
    	LL	(R4), R8
    	BNE	R5, R8, cas_fail
    	SC	R7, (R4)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. pkg/kube/krt/singleton.go

    	return d.id
    }
    
    func toEvent[T any](old, now *T) Event[T] {
    	if old == nil {
    		return Event[T]{
    			New:   now,
    			Event: controllers.EventAdd,
    		}
    	} else if now == nil {
    		return Event[T]{
    			Old:   old,
    			Event: controllers.EventDelete,
    		}
    	}
    	return Event[T]{
    		New:   now,
    		Old:   old,
    		Event: controllers.EventUpdate,
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/serviceentry/util.go

    		}
    	}
    
    	return out
    }
    
    // returns a set of objects that are in `old` but not in `curr`
    // For example:
    // old = {a1, a2, a3}
    // curr = {a1, a2, a4, a5}
    // difference(old, curr) = {a3}
    func difference(old, curr map[types.NamespacedName]*config.Config) []types.NamespacedName {
    	var out []types.NamespacedName
    	for key := range old {
    		if _, ok := curr[key]; !ok {
    			out = append(out, key)
    		}
    	}
    
    	return out
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 02:03:58 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. src/runtime/os_openbsd_syscall2.go

    //go:nosplit
    //go:nowritebarrierrec
    func sigprocmask(how int32, new, old *sigset) {
    	n := sigset(0)
    	if new != nil {
    		n = *new
    	}
    	r := obsdsigprocmask(how, n)
    	if old != nil {
    		*old = r
    	}
    }
    
    func pipe2(flags int32) (r, w int32, errno int32)
    
    //go:noescape
    func setitimer(mode int32, new, old *itimerval)
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. pkg/registry/admissionregistration/validatingadmissionpolicy/strategy.go

    	errs := validation.ValidateValidatingAdmissionPolicyUpdate(obj.(*admissionregistration.ValidatingAdmissionPolicy), old.(*admissionregistration.ValidatingAdmissionPolicy))
    	if len(errs) == 0 {
    		// if the object is well-formed, also authorize the paramKind
    		if err := v.authorizeUpdate(ctx, obj, old); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  7. pkg/apis/apps/validation/validation_test.go

    	}
    
    	type testCase struct {
    		name   string
    		old    apps.StatefulSet
    		update apps.StatefulSet
    		errs   field.ErrorList
    	}
    
    	successCases := []testCase{{
    		name:   "update replica count",
    		old:    mkStatefulSet(&validPodTemplate),
    		update: mkStatefulSet(&validPodTemplate, tweakReplicas(3)),
    	}, {
    		name:   "update containers 1",
    		old:    mkStatefulSet(&validPodTemplate),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 111.9K bytes
    - Viewed (0)
  8. src/runtime/stack.go

    	// that case.
    	gcController.addScannableStack(getg().m.p.ptr(), int64(newsize)-int64(old.hi-old.lo))
    
    	// allocate new stack
    	new := stackalloc(uint32(newsize))
    	if stackPoisonCopy != 0 {
    		fillstack(new, 0xfd)
    	}
    	if stackDebug >= 1 {
    		print("copystack gp=", gp, " [", hex(old.lo), " ", hex(old.hi-used), " ", hex(old.hi), "]", " -> [", hex(new.lo), " ", hex(new.hi-used), " ", hex(new.hi), "]/", newsize, "\n")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  9. pkg/registry/resource/resourceclaimparameters/strategy.go

    }
    
    func (resourceClaimParametersStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
    	return validation.ValidateResourceClaimParametersUpdate(obj.(*resource.ResourceClaimParameters), old.(*resource.ResourceClaimParameters))
    }
    
    func (resourceClaimParametersStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string {
    	return nil
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 15:15:31 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. src/cmd/go/internal/workcmd/edit.go

    	if !found {
    		base.Fatalf("go: -replace=%s: need old[@v]=new[@w] (missing =)", arg)
    	}
    	old, new := strings.TrimSpace(before), strings.TrimSpace(after)
    	if strings.HasPrefix(new, ">") {
    		base.Fatalf("go: -replace=%s: separator between old and new is =, not =>", arg)
    	}
    	oldPath, oldVersion, err := parsePathVersionOptional("old", old, false)
    	if err != nil {
    		base.Fatalf("go: -replace=%s: %v", arg, err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top