Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for aVal (0.03 sec)

  1. src/internal/fmtsort/sort.go

    		a, b := aVal.Bool(), bVal.Bool()
    		switch {
    		case a == b:
    			return 0
    		case a:
    			return 1
    		default:
    			return -1
    		}
    	case reflect.Pointer, reflect.UnsafePointer:
    		return cmp.Compare(aVal.Pointer(), bVal.Pointer())
    	case reflect.Chan:
    		if c, ok := nilCompare(aVal, bVal); ok {
    			return c
    		}
    		return cmp.Compare(aVal.Pointer(), bVal.Pointer())
    	case reflect.Struct:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/promise/counting_test.go

    	gots := make(chan interface{}, 1)
    	goGetExpectNotYet(t, clock, counter, wr, gots, "Set")
    	aval := &now
    	func() {
    		lock.Lock()
    		defer lock.Unlock()
    		if !wr.Set(aval) {
    			t.Error("Set() returned false")
    		}
    	}()
    	clock.Run(nil)
    	expectGotValue(t, gots, aval)
    	goGetAndExpect(t, clock, counter, wr, gots, aval)
    	later := time.Now()
    	bval := &later
    	func() {
    		lock.Lock()
    		defer lock.Unlock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 10 14:37:53 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/promise/promise_test.go

    	goGetExpectNotYet(t, wr, gots, "Set")
    	now := time.Now()
    	aval := &now
    	if !wr.Set(aval) {
    		t.Error("Set() returned false")
    	}
    	expectGotValue(t, gots, aval)
    	goGetAndExpect(t, wr, gots, aval)
    	later := time.Now()
    	bval := &later
    	if wr.Set(bval) {
    		t.Error("second Set() returned true")
    	}
    	goGetAndExpect(t, wr, gots, aval)
    	cancel()
    	time.Sleep(time.Second) // give it a chance to misbehave
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 19:19:31 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. subprojects/diagnostics/src/test/groovy/org/gradle/api/reporting/model/ReportNodeTest.groovy

            setup:
            ReportNode parent = new ReportNode('parent')
            new ReportNode(parent, 'child', [aVal: 2])
            new ReportNode(parent, 'child', [aVal: 1])
    
            expect:
            parent.findFirstByName('child').attribute('aVal') == 2
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 02 09:25:11 UTC 2015
    - 1.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/Booleans.java

          this.trueValue = trueValue;
          this.toString = toString;
        }
    
        @Override
        public int compare(Boolean a, Boolean b) {
          int aVal = a ? trueValue : 0;
          int bVal = b ? trueValue : 0;
          return bVal - aVal;
        }
    
        @Override
        public String toString() {
          return toString;
        }
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/primitives/Booleans.java

          this.trueValue = trueValue;
          this.toString = toString;
        }
    
        @Override
        public int compare(Boolean a, Boolean b) {
          int aVal = a ? trueValue : 0;
          int bVal = b ? trueValue : 0;
          return bVal - aVal;
        }
    
        @Override
        public String toString() {
          return toString;
        }
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  7. cmd/warm-backend-azure.go

    	}
    	return false, nil
    }
    
    func newCredentialFromSP(conf madmin.TierAzure) (azblob.Credential, error) {
    	oauthConfig, err := adal.NewOAuthConfig(azure.PublicCloud.ActiveDirectoryEndpoint, conf.SPAuth.TenantID)
    	if err != nil {
    		return nil, err
    	}
    	spt, err := adal.NewServicePrincipalToken(*oauthConfig, conf.SPAuth.ClientID, conf.SPAuth.ClientSecret, azure.PublicCloud.ResourceIdentifiers.Storage)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Mar 05 16:44:08 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/loong64/obj.go

    	"cmd/internal/sys"
    	"internal/abi"
    	"log"
    	"math"
    )
    
    func progedit(ctxt *obj.Link, p *obj.Prog, newprog obj.ProgAlloc) {
    	// Rewrite JMP/JAL to symbol as TYPE_BRANCH.
    	switch p.As {
    	case AJMP,
    		AJAL,
    		ARET,
    		obj.ADUFFZERO,
    		obj.ADUFFCOPY:
    		if p.To.Sym != nil {
    			p.To.Type = obj.TYPE_BRANCH
    		}
    	}
    
    	// Rewrite float constants to values stored in memory.
    	switch p.As {
    	case AMOVF:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:22:18 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/loong64/a.out.go

    	AAMMAXDBWU
    	AAMMAXDBVU
    	AAMMINDBWU
    	AAMMINDBVU
    
    	// 2.2.10. Other Miscellaneous Instructions
    	ARDTIMELW
    	ARDTIMEHW
    	ARDTIMED
    
    	ALAST
    
    	// aliases
    	AJMP = obj.AJMP
    	AJAL = obj.ACALL
    	ARET = obj.ARET
    )
    
    func init() {
    	// The asm encoder generally assumes that the lowest 5 bits of the
    	// REG_XX constants match the machine instruction encoding, i.e.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:04:54 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/mips/obj0.go

    	c := ctxt0{ctxt: ctxt, newprog: newprog}
    
    	p.From.Class = 0
    	p.To.Class = 0
    
    	// Rewrite JMP/JAL to symbol as TYPE_BRANCH.
    	switch p.As {
    	case AJMP,
    		AJAL,
    		ARET,
    		obj.ADUFFZERO,
    		obj.ADUFFCOPY:
    		if p.To.Sym != nil {
    			p.To.Type = obj.TYPE_BRANCH
    		}
    	}
    
    	// Rewrite float constants to values stored in memory.
    	switch p.As {
    	case AMOVF:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 19:28:53 UTC 2023
    - 30.6K bytes
    - Viewed (0)
Back to top