Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,338 for swapped (0.2 sec)

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

    //go:nosplit
    func Xchg64(addr *uint64, new uint64) (old uint64) {
    	lockAndCheck(addr)
    
    	old = *addr
    	*addr = new
    
    	unlock()
    	return
    }
    
    //go:nosplit
    func Cas64(addr *uint64, old, new uint64) (swapped bool) {
    	lockAndCheck(addr)
    
    	if (*addr) == old {
    		*addr = new
    		unlock()
    		return true
    	}
    
    	unlock()
    	return false
    }
    
    //go:nosplit
    func Load64(addr *uint64) (val uint64) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 20:08:37 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. src/image/geom.go

    	return s.Min.X <= r.Min.X && r.Max.X <= s.Max.X &&
    		s.Min.Y <= r.Min.Y && r.Max.Y <= s.Max.Y
    }
    
    // Canon returns the canonical version of r. The returned rectangle has minimum
    // and maximum coordinates swapped if necessary so that it is well-formed.
    func (r Rectangle) Canon() Rectangle {
    	if r.Max.X < r.Min.X {
    		r.Min.X, r.Max.X = r.Max.X, r.Min.X
    	}
    	if r.Max.Y < r.Min.Y {
    		r.Min.Y, r.Max.Y = r.Max.Y, r.Min.Y
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  3. src/sync/atomic/value.go

    //
    // All calls to CompareAndSwap for a given Value must use values of the same
    // concrete type. CompareAndSwap of an inconsistent type panics, as does
    // CompareAndSwap(old, nil).
    func (v *Value) CompareAndSwap(old, new any) (swapped bool) {
    	if new == nil {
    		panic("sync/atomic: compare and swap of nil value into Value")
    	}
    	vp := (*efaceWords)(unsafe.Pointer(v))
    	np := (*efaceWords)(unsafe.Pointer(&new))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:48:55 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. internal/hash/reader_test.go

    			actualSize: -1,
    			sha256hex:  "88d4266fd4e6338d13b845fcf289579d209c897823b9217da3e161936f031589",
    			err:        ioutil.ErrOverread,
    		},
    		7: {
    			desc:       "Correct sha256, nested, truncated, swapped",
    			src:        mustReader(t, bytes.NewReader([]byte("abcd-more-stuff-to-be ignored")), 4, "", "", -1),
    			size:       4,
    			actualSize: -1,
    			sha256hex:  "88d4266fd4e6338d13b845fcf289579d209c897823b9217da3e161936f031589",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/controller/controller.go

    	// dynamicTransformers updates the transformers when encryption config file changes.
    	dynamicTransformers *encryptionconfig.DynamicTransformers
    
    	// identity of the api server
    	apiServerID string
    
    	// can be swapped during testing
    	getEncryptionConfigHash func(ctx context.Context, filepath string) (string, error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. src/internal/runtime/atomic/atomic_test.go

    	}
    
    	x.before = _magic
    	x.after = _magic
    	for j := 0; j < 32; j += 1 {
    		x.i = (1 << j) + 0
    		x.o = (1 << j) + 0
    		x.n = (1 << j) + 1
    		if !atomic.CasRel(&x.i, x.o, x.n) {
    			t.Fatalf("should have swapped %#x %#x", x.o, x.n)
    		}
    
    		if x.i != x.n {
    			t.Fatalf("wrong x.i after swap: x.i=%#x x.n=%#x", x.i, x.n)
    		}
    
    		if x.before != _magic || x.after != _magic {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. src/net/http/httputil/dump.go

    // can detect that the lack of body was intentional.
    var errNoBody = errors.New("sentinel error value")
    
    // failureToReadBody is an io.ReadCloser that just returns errNoBody on
    // Read. It's swapped in when we don't actually want to consume
    // the body, but need a non-nil one, and want to distinguish the
    // error from reading the dummy body.
    type failureToReadBody struct{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

       * a {@link MoveDesc}. The first one is the element that was previously at the end of the heap and
       * is now at some position before {@code index}. The second element is the one that was swapped
       * down to replace the element at {@code index}. This fact is used by iterator.remove so as to
       * visit elements during a traversal once and only once.
       */
      @VisibleForTesting
      @CanIgnoreReturnValue
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 34K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

       * a {@link MoveDesc}. The first one is the element that was previously at the end of the heap and
       * is now at some position before {@code index}. The second element is the one that was swapped
       * down to replace the element at {@code index}. This fact is used by iterator.remove so as to
       * visit elements during a traversal once and only once.
       */
      @VisibleForTesting
      @CanIgnoreReturnValue
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 34K bytes
    - Viewed (0)
  10. pkg/registry/discovery/endpointslice/strategy_test.go

    					},
    					{
    						Hostname: ptr.To("hostname-1b"),
    						NodeName: ptr.To("node-1"),
    					},
    				},
    			},
    		},
    		{
    			name:      "v1 request, updated endpoints with topology node names swapped",
    			v1Request: true,
    			originalEPS: &discovery.EndpointSlice{
    				Endpoints: []discovery.Endpoint{
    					{
    						Hostname:           ptr.To("hostname-1"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
Back to top