Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 194 for NEG (0.02 sec)

  1. test/codegen/slices.go

    func SliceWithConstCompare(a []int, b int) []int {
    	var c []int = []int{1, 2, 3, 4, 5}
    	if b+len(a) < len(c) {
    		// ppc64x:-"NEG"
    		return c[b:]
    	}
    	return a
    }
    
    func SliceWithSubtractBound(a []int, b int) []int {
    	// ppc64x:"SUBC",-"NEG"
    	return a[(3 - b):]
    }
    
    // --------------------------------------- //
    //   Code generation for unsafe.Slice      //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 18:57:27 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/testdata/fp_test.go

    	quot := cx64quot_ssa(b, a)
    	neg := cx64neg_ssa(a)
    	r := cx64real_ssa(a)
    	i := cx64imag_ssa(a)
    	c1 := cx64eq_ssa(a, a)
    	c2 := cx64eq_ssa(a, b)
    	c3 := cx64ne_ssa(a, a)
    	c4 := cx64ne_ssa(a, b)
    
    	expectCx64(t, "sum", sum, 4+8i)
    	expectCx64(t, "diff", diff, 2+4i)
    	expectCx64(t, "prod", prod, -9+12i)
    	expectCx64(t, "quot", quot, 3+0i)
    	expectCx64(t, "neg", neg, -1-2i)
    	expect32(t, "real", r, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 35K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/crypto/cryptobyte/asn1.go

    	if !s.ReadASN1(&bytes, asn1.INTEGER) || !checkASN1Integer(bytes) {
    		return false
    	}
    	if bytes[0]&0x80 == 0x80 {
    		// Negative number.
    		neg := make([]byte, len(bytes))
    		for i, b := range bytes {
    			neg[i] = ^b
    		}
    		out.SetBytes(neg)
    		out.Add(out, bigOne)
    		out.Neg(out)
    	} else {
    		out.SetBytes(bytes)
    	}
    	return true
    }
    
    func (s *String) readASN1Bytes(out *[]byte) bool {
    	var bytes String
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/while_licm.mlir

    }
    
    // -----
    
    // CHECK-LABEL: testWhileRegionisDefinedOutsideOfLoop
    func.func @testWhileRegionisDefinedOutsideOfLoop(%arg0 : tensor<4xf32>, %arg1 : tensor<i32>) -> tensor<4xf32> {
      %a = "tf.Neg"(%arg0) : (tensor<4xf32>) -> tensor<4xf32>
      %b = "tf.Abs"(%arg0) : (tensor<4xf32>) -> tensor<4xf32>
      // Verify that the Div and Mul are hoisted out of the body
      // CHECK: "tf.Div"
      // CHECK: constant dense<2.200000e+01>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 30 03:28:59 UTC 2022
    - 3K bytes
    - Viewed (0)
  5. src/math/big/natconv.go

    }
    
    // itoa is like utoa but it prepends a '-' if neg && x != 0.
    func (x nat) itoa(neg bool, base int) []byte {
    	if base < 2 || base > MaxBase {
    		panic("invalid base")
    	}
    
    	// x == 0
    	if len(x) == 0 {
    		return []byte("0")
    	}
    	// len(x) > 0
    
    	// allocate buffer for conversion
    	i := int(float64(x.bitLen())/math.Log2(float64(base))) + 1 // off by 1 at most
    	if neg {
    		i++
    	}
    	s := make([]byte, i)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 14.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (SUBFCconst [c] (NEG x)) => (ADDconst [c] x)
    (SUBFCconst [c] (SUBFCconst [d] x)) && is32Bit(c-d) => (ADDconst [c-d] x)
    (SUBFCconst [0] x) => (NEG x)
    (ADDconst [c] (SUBFCconst [d] x)) && is32Bit(c+d) => (SUBFCconst [c+d] x)
    (NEG (ADDconst [c] x)) && is32Bit(-c) => (SUBFCconst [-c] x)
    (NEG (SUBFCconst [c] x)) && is32Bit(-c) => (ADDconst [-c] x)
    (NEG (SUB x y)) => (SUB y x)
    (NEG (NEG x)) => x
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/ops/math_ops.h

                  bool transpose_a = false, bool transpose_b = false,
                  const char* name = nullptr,
                  const char* raw_device_name = nullptr);
    
    // Computes numerical negative value element-wise.
    Status Neg(AbstractContext* ctx, AbstractTensorHandle* const x,
               AbstractTensorHandle** y, const char* name = nullptr,
               const char* raw_device_name = nullptr);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 10 19:11:36 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    // rotate left negative = rotate right
    (ROLQ x (NEG(Q|L) y)) => (RORQ x y)
    (ROLL x (NEG(Q|L) y)) => (RORL x y)
    (ROLW x (NEG(Q|L) y)) => (RORW x y)
    (ROLB x (NEG(Q|L) y)) => (RORB x y)
    
    // rotate right negative = rotate left
    (RORQ x (NEG(Q|L) y)) => (ROLQ x y)
    (RORL x (NEG(Q|L) y)) => (ROLL x y)
    (RORW x (NEG(Q|L) y)) => (ROLW x y)
    (RORB x (NEG(Q|L) y)) => (ROLB x y)
    
    // rotate by constants
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_lowering_patterns.td

    def IsNchwLayoutOp: Constraint<CPred<
      "$0.get(\"is_nchw_op\") && $0.get(\"is_nchw_op\").dyn_cast<BoolAttr>() "
          "== mlir::BoolAttr::get($_builder.getContext(), true)">>;
    
    def IsNhwcLayoutOp: Constraint<Neg<IsNchwLayoutOp.predicate>>;
    
    // TODO(b/343278954): Move the creation of transposes to a separate prepare pass
    // to avoid creating multiple pattern-rewrite rules for the same composite op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. 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)
Back to top