Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 61 for NEG (0.04 sec)

  1. src/math/big/intconv.go

    	// determine sign
    	neg, err := scanSign(r)
    	if err != nil {
    		return nil, 0, err
    	}
    
    	// determine mantissa
    	z.abs, base, _, err = z.abs.scan(r, base, false)
    	if err != nil {
    		return nil, base, err
    	}
    	z.neg = len(z.abs) > 0 && neg // 0 has no sign
    
    	return z, base, nil
    }
    
    func scanSign(r io.ByteScanner) (neg bool, err error) {
    	var ch byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  2. src/math/big/intmarsh.go

    		return fmt.Errorf("Int.GobDecode: encoding version %d not supported", b>>1)
    	}
    	z.neg = b&1 != 0
    	z.abs = z.abs.setBytes(buf[1:])
    	return nil
    }
    
    // MarshalText implements the [encoding.TextMarshaler] interface.
    func (x *Int) MarshalText() (text []byte, err error) {
    	if x == nil {
    		return []byte("<nil>"), nil
    	}
    	return x.abs.itoa(x.neg, 10), nil
    }
    
    // UnmarshalText implements the [encoding.TextUnmarshaler] interface.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. test/phiopt.go

    //go:noinline
    func f7and(a bool, b bool) bool {
    	return a && b // ERROR "converted OpPhi to AndB$"
    }
    
    //go:noinline
    func f8(s string) (string, bool) {
    	neg := false
    	if s[0] == '-' {    // ERROR "converted OpPhi to Copy$"
    		neg = true
    		s = s[1:]
    	}
    	return s, neg
    }
    
    var d int
    
    //go:noinline
    func f9(a, b int) bool {
    	c := false
    	if a < 0 {          // ERROR "converted OpPhi to Copy$"
    		if b < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. test/fixedbugs/issue9604b.go

    		a = append(a, r.Lsh(r, t.bits-1).Sub(r, big.NewInt(1)))
    		r = big.NewInt(1)
    		a = append(a, r.Lsh(r, t.bits-1).Sub(r, big.NewInt(2)))
    		r = big.NewInt(1)
    		a = append(a, r.Lsh(r, t.bits-1).Neg(r))
    		r = big.NewInt(1)
    		a = append(a, r.Lsh(r, t.bits-1).Neg(r).Add(r, big.NewInt(1)))
    	} else {
    		r := big.NewInt(1)
    		a = append(a, r.Lsh(r, t.bits).Sub(r, big.NewInt(1)))
    		r = big.NewInt(1)
    		a = append(a, r.Lsh(r, t.bits).Sub(r, big.NewInt(2)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/math.mlir

      %3 = "tfl.div"(%2, %1) {fused_activation_function = "NONE"} : (tensor<4xf32>, tensor<4xf32>) -> tensor<4xf32> loc("div")
      %4 = "tfl.exp"(%3) : (tensor<4xf32>) -> tensor<4xf32> loc("exp")
      %5 = "tfl.neg"(%4) : (tensor<4xf32>) -> tensor<4xf32> loc("neg")
      func.return %5 : tensor<4xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 14 16:41:28 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/math.mlir

      %3 = "tfl.div"(%2, %1) {fused_activation_function = "NONE"} : (tensor<4xf32>, tensor<4xf32>) -> tensor<4xf32> loc("div")
      %4 = "tfl.exp"(%3) : (tensor<4xf32>) -> tensor<4xf32> loc("exp")
      %5 = "tfl.neg"(%4) : (tensor<4xf32>) -> tensor<4xf32> loc("neg")
      func.return %5 : tensor<4xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. src/syscall/asm_linux_s390x.s

    	MOVD	a2+16(FP), R3
    	MOVD	a3+24(FP), R4
    	MOVD	$0, R5
    	MOVD	$0, R6
    	MOVD	$0, R7
    	MOVD	trap+0(FP), R1	// syscall entry
    	SYSCALL
    	MOVD	$0xfffffffffffff001, R8
    	CMPUBLT	R2, R8, ok2
    	MOVD	$-1, r1+32(FP)
    	NEG	R2, R2
    	MOVD	R2, err+40(FP)	// errno
    	RET
    ok2:
    	MOVD	R2, r1+32(FP)
    	MOVD	$0, err+40(FP)	// errno
    	RET
    
    // func rawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:11:15 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. src/internal/types/testdata/check/lookup2.go

    // instead we use the big.Float and ast.File types as they provide a suitable mix of exported and un-
    // exported fields and methods.
    
    func _() {
    	var x *big.Float
    	_ = x.Neg  // OK
    	_ = x.NeG  // ERROR "x.NeG undefined (type *big.Float has no field or method NeG, but does have method Neg)"
    	_ = x.Form // ERROR "x.Form undefined (type *big.Float has no field or method Form, but does have unexported field form)"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 16:41:56 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. src/runtime/sys_netbsd_arm64.s

    	MOVD	p+8(FP), R1		// arg 2 - buf
    	MOVW	n+16(FP), R2		// arg 3 - count
    	SVC	$SYS_read
    	BCC	ok
    	NEG	R0, R0
    ok:
    	MOVW	R0, ret+24(FP)
    	RET
    
    // func pipe2(flags int32) (r, w int32, errno int32)
    TEXT runtime·pipe2(SB),NOSPLIT|NOFRAME,$0-20
    	ADD	$16, RSP, R0
    	MOVW	flags+0(FP), R1
    	SVC	$SYS_pipe2
    	BCC	pipe2ok
    	NEG	R0, R0
    pipe2ok:
    	MOVW	R0, errno+16(FP)
    	RET
    
    TEXT runtime·write1(SB),NOSPLIT,$-8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  10. tensorflow/c/eager/gradients_test.cc

        absl::Span<AbstractTensorHandle*> outputs) {
      Tape tape(/*persistent=*/false);
      tape.Watch(inputs[0]);
      AbstractTensorHandle* neg_output;
      TF_RETURN_IF_ERROR(ops::Neg(ctx, inputs[0], &neg_output, "Neg"));
      tape.RecordOperation(inputs, {neg_output}, nullptr, "Neg");
      return tape.ComputeGradient(ctx,
                                  /*targets=*/{neg_output},
                                  /*sources=*/inputs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top