- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 71 for is_zero (0.16 sec)
-
cmd/rebalance-admin.go
elapsed := time.Since(ps.Info.StartTime) eta := time.Duration(totalBytesToRebal * float64(elapsed) / float64(ps.Bytes)) if !ps.Info.EndTime.IsZero() { stopTime = ps.Info.EndTime } if !stopTime.IsZero() { // rebalance is stopped or completed elapsed = stopTime.Sub(ps.Info.StartTime) eta = 0 } r.Pools[i].Progress = rebalPoolProgress{ NumObjects: ps.NumObjects,
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Dec 22 00:56:43 UTC 2023 - 3.8K bytes - Viewed (0) -
src/cmd/compile/internal/ir/const.go
return NewCompLitExpr(pos, OCOMPLIT, typ, nil) } base.FatalfAt(pos, "unexpected type: %v", typ) panic("unreachable") } var ( intZero = constant.MakeInt64(0) floatZero = constant.ToFloat(intZero) complexZero = constant.ToComplex(intZero) ) // NewOne returns an OLITERAL representing 1 with the given type. func NewOne(pos src.XPos, typ *types.Type) Node { var val constant.Value switch {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 18:53:26 UTC 2023 - 4K bytes - Viewed (0) -
cmd/metrics-v3-cluster-usage.go
dataUsageInfo, err := c.dataUsageInfo.Get() if err != nil { metricsLogIf(ctx, err) return nil } // data usage has not captured any data yet. if dataUsageInfo.LastUpdate.IsZero() { return nil } var ( clusterSize uint64 clusterBuckets uint64 clusterObjectsCount uint64 clusterVersionsCount uint64 clusterDeleteMarkersCount uint64 )
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 6.6K bytes - Viewed (0) -
schema/utils.go
for _, rel := range rels { reflectResults = reflect.MakeSlice(reflect.SliceOf(reflect.PtrTo(rel.FieldSchema.ModelType)), 0, 1) appendToResults := func(value reflect.Value) { if _, isZero := rel.Field.ValueOf(ctx, value); !isZero { result := reflect.Indirect(rel.Field.ReflectValueOf(ctx, value)) switch result.Kind() { case reflect.Struct: reflectResults = reflect.Append(reflectResults, result.Addr())
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Sat Aug 19 13:35:14 UTC 2023 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo.cc
auto value = *attr.value_begin<APFloat>(); return value.isNegative() && value.isInfinity(); } else if (element_type.isInteger(1)) { auto value = *attr.value_begin<APInt>(); return value.isZero(); } else { auto value = *attr.value_begin<APInt>(); return element_type.isUnsignedInteger() ? value.isMinValue() : value.isMinSignedValue(); } } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
src/internal/poll/fd_plan9.go
} if mode == 'w' || mode == 'r'+'w' { fd.wmu.Lock() defer fd.wmu.Unlock() if fd.wtimer != nil { fd.wtimer.Stop() fd.wtimer = nil } fd.wtimedout = false } if !t.IsZero() && d > 0 { // Interrupt I/O operation once timer has expired if mode == 'r' || mode == 'r'+'w' { var timer *time.Timer timer = time.AfterFunc(d, func() { fd.rmu.Lock() defer fd.rmu.Unlock()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 14:00:54 UTC 2024 - 5.4K bytes - Viewed (0)