Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 65 for NEG (0.09 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

    	if q.d.Dec != nil {
    		return q.d.Dec.Cmp(inf.NewDec(y, inf.Scale(0)))
    	}
    	return q.i.Cmp(int64Amount{value: y})
    }
    
    // Neg sets quantity to be the negative value of itself.
    func (q *Quantity) Neg() {
    	q.s = ""
    	if q.d.Dec == nil {
    		q.i.value = -q.i.value
    		return
    	}
    	q.d.Dec.Neg(q.d.Dec)
    }
    
    // Equal checks equality of two Quantities. This is useful for testing with
    // cmp.Equal.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/PPC64latelower.rules

    //       both ops are in the same block.
    (CMPconst [0] z:((ADD|AND|ANDN|OR|SUB|NOR|XOR) x y)) && v.Block == z.Block => (CMPconst [0] convertPPC64OpToOpCC(z))
    (CMPconst [0] z:((NEG|CNTLZD|RLDICL) x)) && v.Block == z.Block => (CMPconst [0] convertPPC64OpToOpCC(z))
    // Note: ADDCCconst only assembles to 1 instruction for int16 constants.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/generic.rules

    (RotateLeft64 x (Neg(64|32|16|8) (And(64|32|16|8) y (Const(64|32|16|8) [c])))) && c&63 == 63 => (RotateLeft64 x (Neg(64|32|16|8) <y.Type> y))
    (RotateLeft32 x (Neg(64|32|16|8) (And(64|32|16|8) y (Const(64|32|16|8) [c])))) && c&31 == 31 => (RotateLeft32 x (Neg(64|32|16|8) <y.Type> y))
    (RotateLeft16 x (Neg(64|32|16|8) (And(64|32|16|8) y (Const(64|32|16|8) [c])))) && c&15 == 15 => (RotateLeft16 x (Neg(64|32|16|8) <y.Type> y))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool_patterns.td

    // Returns true if the provided padding in the composite op can be satisfied 
    // by SAME or VALID tensorflow padding.
    def HasSameOrValidPadding: Constraint<Neg<HasCustomPadding.predicate>>;
    
    // See the function doc in the header file.
    def GetPadOpAttr: NativeCodeCall<"GetPadOpAttr($_builder, (*$0.begin()).getDefiningOp<mhlo::CompositeOp>())">;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:16:05 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    			for i := 0; i < 100; i++ {
    				j := rand.Int63()
    				q := *NewScaledQuantity(j, Scale(k))
    				if asDec {
    					q.AsDec()
    				}
    
    				b := q.DeepCopy()
    				b.Neg()
    				b.Neg()
    				if b.Cmp(q) != 0 {
    					t.Errorf("double negation did not cancel: %s", &q)
    				}
    			}
    		}
    	}
    }
    
    func TestQuantityAsApproximateFloat64(t *testing.T) {
    	table := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  6. src/time/format.go

    func atoi[bytes []byte | string](s bytes) (x int, err error) {
    	neg := false
    	if len(s) > 0 && (s[0] == '-' || s[0] == '+') {
    		neg = s[0] == '-'
    		s = s[1:]
    	}
    	q, rem, err := leadingInt(s)
    	x = int(q)
    	if err != nil || len(rem) > 0 {
    		return 0, errAtoi
    	}
    	if neg {
    		x = -x
    	}
    	return x, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir

      // CHECK: %[[NEG:.*]] = "tf.Neg"(%arg0) {device = ""}
      // CHECK: %[[UNPACK:.*]]:2 = "tf.Unpack"(%[[NEG]]) <{axis = 1 : i64}> {device = ""}
      %unpacked:2 = "tf.Unpack"(%arg0) {axis = 1 : i64, device = ""}
                    : (tensor<?x2xf32>) -> (tensor<?xf32>, tensor<?xf32>)
      %0 = "tf.Neg"(%unpacked#0): (tensor<?xf32>) -> tensor<?xf32>
      %1 = "tf.Neg"(%unpacked#1): (tensor<?xf32>) -> tensor<?xf32>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 132.1K bytes
    - Viewed (0)
  8. src/math/big/float_test.go

    		x := NewFloat(5.0)
    		y := new(Float).Neg(x)
    		want := NewFloat(0.0)
    		if mode == ToNegativeInf {
    			want.Neg(want)
    		}
    		got := new(Float).SetMode(mode)
    		got.Add(x, y)
    		if got.Cmp(want) != 0 || got.neg != (mode == ToNegativeInf) {
    			t.Errorf("%s:\n\t     %v\n\t+    %v\n\t=    %v\n\twant %v",
    				mode, x, y, got, want)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  9. src/time/time.go

    // returns the offset of the first character.
    func (d Duration) format(buf *[32]byte) int {
    	// Largest time is 2540400h10m10.000000000s
    	w := len(buf)
    
    	u := uint64(d)
    	neg := d < 0
    	if neg {
    		u = -u
    	}
    
    	if u < uint64(Second) {
    		// Special case: if duration is smaller than a second,
    		// use smaller units, like 1.2ms
    		var prec int
    		w--
    		buf[w] = 's'
    		w--
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  10. src/math/big/int_test.go

    		nil,
    		{0},
    		{1},
    		{0, 1, 2, 3, 4},
    		{4, 3, 2, 1, 0},
    		{4, 3, 2, 1, 0, 0, 0, 0},
    	} {
    		var z Int
    		z.neg = true
    		got := z.SetBits(test)
    		want := norm(test)
    		if got.abs.cmp(want) != 0 {
    			t.Errorf("SetBits(%v) = %v; want %v", test, got.abs, want)
    		}
    
    		if got.neg {
    			t.Errorf("SetBits(%v): got negative result", test)
    		}
    
    		bits := nat(z.Bits())
    		if bits.cmp(want) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
Back to top