Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for vminus1 (0.2 sec)

  1. test/slice3.go

    	fmt.Fprintf(bout, "func main() {\n")
    
    	index := []string{
    		"0",
    		"1",
    		"2",
    		"3",
    		"10",
    		"20",
    		"vminus1",
    		"v0",
    		"v1",
    		"v2",
    		"v3",
    		"v10",
    		"v20",
    	}
    
    	parse := func(s string) (n int, isconst bool) {
    		if s == "vminus1" {
    			return -1, false
    		}
    		isconst = true
    		if s[0] == 'v' {
    			isconst = false
    			s = s[1:]
    		}
    		n, _ = strconv.Atoi(s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 2.9K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/src/operators/cpp/minus.cpp

    #include "operators.h"
    
    int minus(int a, int b) {
        return a - b;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 70 bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/src/operators/c/minus.c

    #include "operators.h"
    
    int minus(int a, int b) {
        return a - b;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 70 bytes
    - Viewed (0)
  4. test/fixedbugs/bug273.go

    import "unsafe"
    
    var bug = false
    
    var minus1 = -1
    var five = 5
    var big int64 = 10 | 1<<46
    
    type block [1 << 19]byte
    
    var g1 []block
    
    func shouldfail(f func(), desc string) {
    	defer func() { recover() }()
    	f()
    	if !bug {
    		println("BUG")
    		bug = true
    	}
    	println("didn't crash: ", desc)
    }
    
    func badlen() {
    	g1 = make([]block, minus1)
    }
    
    func biglen() {
    	g1 = make([]block, big)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 26 14:06:28 UTC 2018
    - 1.3K bytes
    - Viewed (0)
  5. test/const1.go

    // Does not compile.
    
    package main
    
    import "unsafe"
    
    type I interface{}
    
    const (
    	// assume all types behave similarly to int8/uint8
    	Int8   int8  = 101
    	Minus1 int8  = -1
    	Uint8  uint8 = 102
    	Const        = 103
    
    	Float32    float32 = 104.5
    	Float64    float64 = 105.5
    	ConstFloat         = 106.5
    	Big        float64 = 1e300
    
    	String = "abc"
    	Bool   = true
    )
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 01 21:49:31 UTC 2020
    - 3.8K bytes
    - Viewed (0)
  6. src/crypto/dsa/dsa.go

    // in math/big.Int.ModInverse) although math/big itself isn't strictly
    // constant-time so it's not perfect.
    func fermatInverse(k, P *big.Int) *big.Int {
    	two := big.NewInt(2)
    	pMinus2 := new(big.Int).Sub(P, two)
    	return new(big.Int).Exp(k, pMinus2, P)
    }
    
    // Sign signs an arbitrary length hash (which should be the result of hashing a
    // larger message) using the private key, priv. It returns the signature as a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/gradients/nn_grad.cc

            "BroadcastMul is not supported in tracing mode yet.");
      }
      auto imm_ctx = dyn_cast<ImmediateExecutionContext>(ctx);
      AbstractTensorPtr minus_1(imm_ctx->CreateInt32Scalar(-1));
      ImmediateTensorHandlePtr dim(imm_ctx->CreateLocalHandle(minus_1.get()));
      AbstractTensorHandle* expand_dims_outputs;
      TF_RETURN_IF_ERROR(
          ops::ExpandDims(ctx, vec, dim.get(), &expand_dims_outputs, "ExpandDims"));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 09 06:38:45 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/src/operators/headers/operators.h

    int plus(int a, int b);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 49 bytes
    - Viewed (0)
  9. guava/src/com/google/common/math/ToDoubleRounder.java

                  return roundCeilingAsDouble;
                }
                roundFloor = toX(roundFloorAsDouble, RoundingMode.FLOOR);
              }
    
              X deltaToFloor = minus(x, roundFloor);
              X deltaToCeiling = minus(roundCeiling, x);
              int diff = deltaToFloor.compareTo(deltaToCeiling);
              if (diff < 0) { // closer to floor
                return roundFloorAsDouble;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/ToDoubleRounder.java

                  return roundCeilingAsDouble;
                }
                roundFloor = toX(roundFloorAsDouble, RoundingMode.FLOOR);
              }
    
              X deltaToFloor = minus(x, roundFloor);
              X deltaToCeiling = minus(roundCeiling, x);
              int diff = deltaToFloor.compareTo(deltaToCeiling);
              if (diff < 0) { // closer to floor
                return roundFloorAsDouble;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top