Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 26 of 26 for memequal (0.13 sec)

  1. src/internal/concurrent/hashtriemap.go

    	if keyEqual(unsafe.Pointer(&head.key), abi.NoEscape(unsafe.Pointer(&key))) &&
    		valEqual(unsafe.Pointer(&head.value), abi.NoEscape(unsafe.Pointer(&value))) {
    		// Drop the head of the list.
    		return head.overflow.Load(), true
    	}
    	i := &head.overflow
    	e := i.Load()
    	for e != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/v2/conversion_test.go

    				} else if equal && test.expectDiff {
    					t.Errorf("expected diff, but didn't get any")
    				}
    			}
    		})
    	}
    }
    
    func withVendorExtensions(s *spec.Schema, key string, value interface{}) *spec.Schema {
    	s.VendorExtensible.AddExtension(key, value)
    	return s
    }
    
    func refEqual(x spec.Ref, y spec.Ref) bool {
    	return x.String() == y.String()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 14:34:26 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/poset.go

    		panic("should not call SetOrder with n1==n2")
    	}
    	return po.setOrder(n1, n2, false)
    }
    
    // SetEqual records that n1==n2. Returns false if this is a contradiction
    // (that is, if it is already recorded that n1<n2 or n2<n1).
    // Complexity is O(1) if n2 was never seen before, or O(n) otherwise.
    func (po *poset) SetEqual(n1, n2 *Value) bool {
    	if debugPoset {
    		defer po.CheckIntegrity()
    	}
    	if n1.ID == n2.ID {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 17:23:05 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    			}
    		}
    	})
    
    	sizes := []int{1, 6, 9, 15, 16, 20, 32, 4 << 10, 4 << 20, 64 << 20}
    
    	b.Run("same", func(b *testing.B) {
    		benchBytes(b, sizes, bmEqual(func(a, b []byte) bool { return Equal(a, a) }))
    	})
    
    	benchBytes(b, sizes, bmEqual(Equal))
    }
    
    func bmEqual(equal func([]byte, []byte) bool) func(b *testing.B, n int) {
    	return func(b *testing.B, n int) {
    		if len(bmbuf) < 2*n {
    			bmbuf = make([]byte, 2*n)
    		}
    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/reflect/type.go

    	}
    
    	etyp := typ
    	esize := etyp.Size()
    
    	array.Equal = nil
    	if eequal := etyp.Equal; eequal != nil {
    		array.Equal = func(p, q unsafe.Pointer) bool {
    			for i := 0; i < length; i++ {
    				pi := arrayAt(p, i, esize, "i < length")
    				qi := arrayAt(q, i, esize, "i < length")
    				if !eequal(pi, qi) {
    					return false
    				}
    
    			}
    			return true
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/prove.go

    			ok = order.SetOrder(v, w)
    		case gt:
    			ok = order.SetOrder(w, v)
    		case lt | eq:
    			ok = order.SetOrderOrEqual(v, w)
    		case gt | eq:
    			ok = order.SetOrderOrEqual(w, v)
    		case eq:
    			ok = order.SetEqual(v, w)
    		case lt | gt:
    			ok = order.SetNonEqual(v, w)
    		default:
    			panic("unknown relation")
    		}
    		if !ok {
    			if parent.Func.pass.debug > 2 {
    				parent.Func.Warnl(parent.Pos, "unsat %s %s %s", v, w, r)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:21 UTC 2024
    - 48.9K bytes
    - Viewed (0)
Back to top