- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 825 for zero (0.08 sec)
-
src/cmp/cmp.go
func isNaN[T Ordered](x T) bool { return x != x } // Or returns the first of its arguments that is not equal to the zero value. // If no argument is non-zero, it returns the zero value. func Or[T comparable](vals ...T) T { var zero T for _, val := range vals { if val != zero { return val } } return zero
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 16:31:02 UTC 2024 - 2K bytes - Viewed (0) -
src/go/constant/example_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java
assertTrue(ZERO.setBit(result).compareTo(x) <= 0); assertTrue(ZERO.setBit(result + 1).compareTo(x) > 0); } } } public void testLog2Ceiling() { for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) { for (RoundingMode mode : asList(CEILING, UP)) { int result = BigIntegerMath.log2(x, mode); assertTrue(ZERO.setBit(result).compareTo(x) >= 0);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 17 17:58:33 UTC 2024 - 27.8K bytes - Viewed (0) -
src/math/big/float.go
} z.acc = Exact if x.form == zero && y.form == zero || x.form == inf && y.form == inf { // ±0 / ±0 // ±Inf / ±Inf // value of z is undefined but make sure it's valid z.form = zero z.neg = false panic(ErrNaN{"division of zero by zero or infinity by infinity"}) } if x.form == zero || y.form == inf { // ±0 / y // x / ±Inf z.form = zero return z } // x / ±0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 15:46:54 UTC 2024 - 44.5K bytes - Viewed (0) -
src/sync/atomic/type.go
func (x *Pointer[T]) CompareAndSwap(old, new *T) (swapped bool) { return CompareAndSwapPointer(&x.v, unsafe.Pointer(old), unsafe.Pointer(new)) } // An Int32 is an atomic int32. The zero value is zero. type Int32 struct { _ noCopy v int32 } // Load atomically loads and returns the value stored in x. func (x *Int32) Load() int32 { return LoadInt32(&x.v) } // Store atomically stores val into x.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:37:29 UTC 2024 - 8.5K bytes - Viewed (0) -
src/crypto/aes/asm_ppc64x.s
LVX (PTR)(TEMP), MASK ADD $0x10, PTR, PTR // addi 6,6,0x10 PTR to next 16 bytes of RCON MOVD $8, CNT // li 7,8 CNT = 8 VXOR ZERO, ZERO, ZERO // vxor 0,0,0 Zero to be zero :) MOVD CNT, CTR // mtctr 7 Set the counter to 8 (rounds) // The expanded decrypt key is the expanded encrypt key stored in reverse order.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 18:05:32 UTC 2024 - 18.6K bytes - Viewed (0) -
pkg/controller/podautoscaler/config/v1alpha1/defaults.go
zero := metav1.Duration{} if obj.ConcurrentHorizontalPodAutoscalerSyncs == 0 { obj.ConcurrentHorizontalPodAutoscalerSyncs = 5 } if obj.HorizontalPodAutoscalerSyncPeriod == zero { obj.HorizontalPodAutoscalerSyncPeriod = metav1.Duration{Duration: 15 * time.Second} } if obj.HorizontalPodAutoscalerDownscaleStabilizationWindow == zero {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun May 19 09:49:23 UTC 2024 - 2.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/uniform_quantized_types.h
// values. The produced type has f32 as its expressed type and i8 as its // storage type. The available values use the full range of the storage value, // i.e. [-128, 127]. Assumes asymmetric quantization, meaning the zero point // value can be a non-zero value. // If `narrow_range` is set true (ex: for weights), a restricted range of // integers will be used for symmetric mapping, i.e. [-127, 127]. UniformQuantizedType CreateI8F32UniformQuantizedType(Location loc,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.7K bytes - Viewed (0) -
pkg/kubelet/images/image_gc_manager_test.go
} startTime := time.Now().Add(-time.Millisecond) _, err := manager.detectImages(ctx, zero) assert := assert.New(t) require.NoError(t, err) assert.Equal(manager.imageRecordsLen(), 3) noContainer, ok := manager.getImageRecord(imageID(0)) require.True(t, ok) assert.Equal(zero, noContainer.firstDetected) assert.Equal(zero, noContainer.lastUsed) withContainerUsingNoNameImage, ok := manager.getImageRecord(imageID(1))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 15:38:20 UTC 2024 - 29.2K bytes - Viewed (0) -
test/codegen/math.go
// See issue 36400. zero := 0.0 // amd64:-"DIVSD" inf := 1 / zero // +inf. We can constant propagate this one. negone := -1.0 // amd64:"DIVSD" z0 := zero / zero // amd64:"MULSD" z1 := zero * inf // amd64:"SQRTSD" z2 := math.Sqrt(negone) return z0 + z1 + z2 } func nanGenerate32() float32 { zero := float32(0.0) // amd64:-"DIVSS"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 15:24:29 UTC 2024 - 6.2K bytes - Viewed (0)