Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 180 for zero (0.25 sec)

  1. src/html/template/exec_test.go

    	{"if 1", "{{if 1}}NON-ZERO{{else}}ZERO{{end}}", "NON-ZERO", tVal, true},
    	{"if 0", "{{if 0}}NON-ZERO{{else}}ZERO{{end}}", "ZERO", tVal, true},
    	{"if 1.5", "{{if 1.5}}NON-ZERO{{else}}ZERO{{end}}", "NON-ZERO", tVal, true},
    	{"if 0.0", "{{if .FloatZero}}NON-ZERO{{else}}ZERO{{end}}", "ZERO", tVal, true},
    	{"if 1.5i", "{{if 1.5i}}NON-ZERO{{else}}ZERO{{end}}", "NON-ZERO", tVal, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/S390X.rules

    // Lowering Zero instructions
    (Zero [0] _ mem) => mem
    (Zero [1] destptr mem) => (MOVBstoreconst [0] destptr mem)
    (Zero [2] destptr mem) => (MOVHstoreconst [0] destptr mem)
    (Zero [4] destptr mem) => (MOVWstoreconst [0] destptr mem)
    (Zero [8] destptr mem) => (MOVDstoreconst [0] destptr mem)
    (Zero [3] destptr mem) =>
    	(MOVBstoreconst [makeValAndOff(0,2)] destptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 74.3K bytes
    - Viewed (0)
  3. src/text/template/exec_test.go

    	{"if 1", "{{if 1}}NON-ZERO{{else}}ZERO{{end}}", "NON-ZERO", tVal, true},
    	{"if 0", "{{if 0}}NON-ZERO{{else}}ZERO{{end}}", "ZERO", tVal, true},
    	{"if 1.5", "{{if 1.5}}NON-ZERO{{else}}ZERO{{end}}", "NON-ZERO", tVal, true},
    	{"if 0.0", "{{if .FloatZero}}NON-ZERO{{else}}ZERO{{end}}", "ZERO", tVal, true},
    	{"if 1.5i", "{{if 1.5i}}NON-ZERO{{else}}ZERO{{end}}", "NON-ZERO", tVal, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/ARM64Ops.go

    		// register indexed store zero
    		{name: "MOVBstorezeroidx", argLength: 3, reg: gpstore, asm: "MOVB", typ: "Mem"}, // store 1 byte of zero to arg0 + arg1, arg2 = mem.
    		{name: "MOVHstorezeroidx", argLength: 3, reg: gpstore, asm: "MOVH", typ: "Mem"}, // store 2 bytes of zero to arg0 + arg1, arg2 = mem.
    		{name: "MOVWstorezeroidx", argLength: 3, reg: gpstore, asm: "MOVW", typ: "Mem"}, // store 4 bytes of zero to arg0 + arg1, arg2 = mem.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 58.8K bytes
    - Viewed (0)
  5. src/index/suffixarray/sais2.go

    		// an empty slot and a non-empty zero, but there's no need
    		// to distinguish them anyway: the final suffix array will end up
    		// with one zero somewhere, and that will be a real zero.
    		k := j - 1
    		c1 := text[k]
    		if k > 0 {
    			if c0 := text[k-1]; c0 < c1 {
    				k = -k
    			}
    		}
    
    		if cB != c1 {
    			bucket[cB] = b
    			cB = c1
    			b = bucket[cB]
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 23:57:18 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    func TestQuantityAddZeroPreservesSuffix(t *testing.T) {
    	testValues := []string{"100m", "1Gi"}
    	zero := MustParse("0")
    	for _, testValue := range testValues {
    		value := MustParse(testValue)
    		v1 := value.DeepCopy()
    		// ensure non-zero + zero = non-zero (suffix preserved)
    		v1.Add(zero)
    		// ensure zero + non-zero = non-zero (suffix preserved)
    		v2 := zero.DeepCopy()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/lower_tf.mlir

      // CHECK-DAG: %[[IS_ZERO:.*]] = "tf.Equal"(%[[INNER_SELECT]], %[[ZERO]]) <{incompatible_shape_error = true}>
      // CHECK-DAG: %[[VAL22:.*]] = "tf.SelectV2"(%[[IS_ZERO]], %[[ZERO]], %[[INNER_SELECT]])
      // CHECK-DAG: %[[VAL23:.*]] = "tf.ClipByValue"(%[[VAL22]], %[[ZERO]], %[[VAL1]]) : (tensor<f32>, tensor<f32>, tensor<f32>) -> tensor<f32>
      // CHECK-DAG: %[[VAL24:.*]] = "tf.Sub"(%[[ZERO]], %[[VAL23]]) : (tensor<f32>, tensor<f32>) -> tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 05 18:35:42 UTC 2024
    - 92K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/compose_uniform_quantized_type_pass.cc

    // %3 = stablehlo.constant  // Input 1 zero point z1 (i8).
    // %4 = stablehlo.constant  // Input 1 zero point z1 (i32).
    // %5 = stablehlo.constant  // Input 2 inverse scale 1 / s2.
    // %6 = stablehlo.constant  // Input 2 zero point z2 (i8).
    // %7 = stablehlo.constant  // Input 2 zero point z2 (i32).
    // %8 = stablehlo.constant  // Input 3 inverse scale 1 / s3.
    // %9 = stablehlo.constant  // Input 3 zero point z3.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  9. src/math/big/float_test.go

    	}
    	return i
    }
    
    func TestFloatZeroValue(t *testing.T) {
    	// zero (uninitialized) value is a ready-to-use 0.0
    	var x Float
    	if s := x.Text('f', 1); s != "0.0" {
    		t.Errorf("zero value = %s; want 0.0", s)
    	}
    
    	// zero value has precision 0
    	if prec := x.Prec(); prec != 0 {
    		t.Errorf("prec = %d; want 0", prec)
    	}
    
    	// zero value can be used in any and all positions of binary operations
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  10. src/time/time.go

    	Hour                 = 60 * Minute
    )
    
    // String returns a string representing the duration in the form "72h3m0.5s".
    // Leading zero units are omitted. As a special case, durations less than one
    // second format use a smaller unit (milli-, micro-, or nanoseconds) to ensure
    // that the leading digit is non-zero. The zero duration formats as 0s.
    func (d Duration) String() string {
    	// This is inlinable to take advantage of "function outlining".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
Back to top