Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 388 for is_zero (0.11 sec)

  1. src/math/log_amd64.s

    #define PosInf 0x7FF0000000000000
    
    // func Log(x float64) float64
    TEXT ·archLog(SB),NOSPLIT,$0
    	// test bits for special cases
    	MOVQ    x+0(FP), BX
    	MOVQ    $~(1<<63), AX // sign bit mask
    	ANDQ    BX, AX
    	JEQ     isZero
    	MOVQ    $0, AX
    	CMPQ    AX, BX
    	JGT     isNegative
    	MOVQ    $PosInf, AX
    	CMPQ    AX, BX
    	JLE     isInfOrNaN
    	// f1, ki := math.Frexp(x); k := float64(ki)
    	MOVQ    BX, X0
    	MOVQ    $0x000FFFFFFFFFFFFF, AX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 23 20:52:57 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. pkg/registry/flowcontrol/prioritylevelconfiguration/strategy_test.go

    					NominalConcurrencyShares: v,
    					LimitResponse: flowcontrolv1.LimitResponse{
    						Type: flowcontrolv1.LimitResponseTypeReject},
    				},
    			},
    		}
    	}
    	v1beta3ObjFn := func(v int32, isZero bool) *flowcontrolv1beta3.PriorityLevelConfiguration {
    		obj := &flowcontrolv1beta3.PriorityLevelConfiguration{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: "foo",
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 20:55:50 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. src/crypto/ecdh/nist.go

    		panic("crypto/ecdh: internal error: nistec ScalarBaseMult returned the identity")
    	}
    	return &PublicKey{
    		curve:     key.curve,
    		publicKey: publicKey,
    	}
    }
    
    // isZero returns whether a is all zeroes in constant time.
    func isZero(a []byte) bool {
    	var acc byte
    	for _, b := range a {
    		acc |= b
    	}
    	return acc == 0
    }
    
    // isLess returns whether a < b, where a and b are big-endian buffers of the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/transition.go

    	return nil
    }
    
    // MarshalXML encodes expiration date if it is non-zero and encodes
    // empty string otherwise
    func (tDate TransitionDate) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error {
    	if tDate.Time.IsZero() {
    		return nil
    	}
    	return e.EncodeElement(tDate.Format(time.RFC3339), startElement)
    }
    
    // TransitionDays is a type alias to unmarshal Days in Transition
    type TransitionDays int
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jan 10 17:07:49 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  5. src/net/netip/inlining_test.go

    		"MustParseAddr",
    		"MustParseAddrPort",
    		"MustParsePrefix",
    		"appendDecimal",
    		"appendHex",
    		"uint128.addOne",
    		"uint128.and",
    		"uint128.bitsClearedFrom",
    		"uint128.bitsSetFrom",
    		"uint128.isZero",
    		"uint128.not",
    		"uint128.or",
    		"uint128.subOne",
    		"uint128.xor",
    	}
    	switch runtime.GOARCH {
    	case "amd64", "arm64":
    		// These don't inline on 32-bit.
    		wantInlinable = append(wantInlinable,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. pkg/controller/nodelifecycle/scheduler/rate_limited_queue_test.go

    		close(wait)
    	}()
    	logger, _ := ktesting.NewTestContext(t)
    	evictor.Try(logger, func(value TimedValue) (bool, time.Duration) {
    		count++
    		if value.AddedAt.IsZero() {
    			t.Fatalf("added should not be zero")
    		}
    		if value.ProcessAt.IsZero() {
    			t.Fatalf("next should not be zero")
    		}
    		if !queued && value.Value == "second" {
    			queued = true
    			close(processing)
    			<-wait
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 17:40:33 UTC 2023
    - 10K bytes
    - Viewed (0)
  7. pkg/registry/certificates/certificates/strategy.go

    	for i := range newCSR.Status.Conditions {
    		if newCSR.Status.Conditions[i].LastUpdateTime.IsZero() {
    			newCSR.Status.Conditions[i].LastUpdateTime = now
    		}
    
    		// preserve existing lastTransitionTime if the condition with this type/status already exists,
    		// otherwise set to now.
    		if newCSR.Status.Conditions[i].LastTransitionTime.IsZero() {
    			lastTransition := now
    			for _, oldCondition := range oldCSR.Status.Conditions {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 18 21:41:43 UTC 2022
    - 11.4K bytes
    - Viewed (0)
  8. pkg/kubelet/nodeshutdown/storage.go

    	b, err := os.ReadFile(l.Path)
    	if err != nil {
    		if os.IsNotExist(err) {
    			return nil
    		}
    		return err
    	}
    	return json.Unmarshal(b, data)
    }
    
    func timestamp(t time.Time) float64 {
    	if t.IsZero() {
    		return 0
    	}
    	return float64(t.Unix())
    }
    
    type state struct {
    	StartTime time.Time `json:"startTime"`
    	EndTime   time.Time `json:"endTime"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 30 03:35:26 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  9. cmd/bucket-lifecycle-audit.go

    	)
    	tags := make(map[string]interface{}, 5)
    	if src > lcEventSrc_None {
    		tags[ilmSrc] = src.String()
    	}
    	tags[ilmAction] = event.Action.String()
    	tags[ilmRuleID] = event.RuleID
    
    	if !event.Due.IsZero() {
    		tags[ilmDue] = event.Due
    	}
    
    	// rule with Transition/NoncurrentVersionTransition in effect
    	if event.StorageClass != "" {
    		tags[ilmTier] = event.StorageClass
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Dec 01 15:56:24 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  10. src/math/fma.go

    	pm1, pm2 := bits.Mul64(xm<<10, ym<<11)
    	zm1, zm2 := zm<<10, uint64(0)
    	ps := xs ^ ys // product sign
    
    	// normalize to 62nd bit
    	is62zero := uint((^pm1 >> 62) & 1)
    	pm1, pm2 = shl(pm1, pm2, is62zero)
    	pe -= int32(is62zero)
    
    	// Swap addition operands so |p| >= |z|
    	if pe < ze || pe == ze && pm1 < zm1 {
    		ps, pe, pm1, pm2, zs, ze, zm1, zm2 = zs, ze, zm1, zm2, ps, pe, pm1, pm2
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 05 22:05:30 UTC 2023
    - 4.6K bytes
    - Viewed (0)
Back to top