- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 160 for vminus1 (0.14 sec)
-
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) -
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) -
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) -
cmd/dependencyverifier/dependencyverifier.go
func difference(a, b []string) ([]string, []string) { aMinusB := map[string]bool{} bMinusA := map[string]bool{} for _, dependency := range a { aMinusB[dependency] = true } for _, dependency := range b { if _, found := aMinusB[dependency]; found { delete(aMinusB, dependency) } else { bMinusA[dependency] = true } } aMinusBList := []string{} bMinusAList := []string{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 07 01:48:30 UTC 2023 - 12.7K bytes - Viewed (0) -
src/crypto/internal/edwards25519/edwards25519.go
v.YplusX.Select(&a.YplusX, &b.YplusX, cond) v.YminusX.Select(&a.YminusX, &b.YminusX, cond) v.Z.Select(&a.Z, &b.Z, cond) v.T2d.Select(&a.T2d, &b.T2d, cond) return v } // Select sets v to a if cond == 1 and to b if cond == 0. func (v *affineCached) Select(a, b *affineCached, cond int) *affineCached { v.YplusX.Select(&a.YplusX, &b.YplusX, cond) v.YminusX.Select(&a.YminusX, &b.YminusX, cond) v.T2d.Select(&a.T2d, &b.T2d, cond)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 13 19:21:54 UTC 2023 - 10.3K bytes - Viewed (0) -
test/64bit.go
var bigneg = Int64{-0x80000000, 0} var minus1 = Int64{-1, ^uint32(0)} if a.Cmp(bigneg) != 0 || b.Cmp(minus1) != 0 { // a != -1<<63 || b != -1 div, mod = a.DivMod(b) dodiv = true } } fmt.Fprintf(bout, "\ttestInt64Binary(%v, %v, %v, %v, %v, %v, %v, %v, %v, %v, %v, %v);\n", a, b, a.Plus(b), a.Minus(b), a.Times(b), div, mod, a.And(b), a.Or(b), a.Xor(b), a.AndNot(b), dodiv)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 30 19:21:08 UTC 2013 - 24.8K bytes - Viewed (0) -
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) -
src/crypto/rsa/rsa.go
continue NextSetOfPrimes } } } n := new(big.Int).Set(bigOne) totient := new(big.Int).Set(bigOne) pminus1 := new(big.Int) for _, prime := range primes { n.Mul(n, prime) pminus1.Sub(prime, bigOne) totient.Mul(totient, pminus1) } if n.BitLen() != bits { // This should never happen for nprimes == 2 because // crypto/rand should set the top two bits in each prime.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:11:18 UTC 2024 - 23.4K bytes - Viewed (0) -
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) -
src/vendor/golang.org/x/crypto/cryptobyte/asn1.go
// invert and subtract 1. If the most-significant-bit isn't set then // we'll need to pad the beginning with 0xff in order to keep the number // negative. nMinus1 := new(big.Int).Neg(n) nMinus1.Sub(nMinus1, bigOne) bytes := nMinus1.Bytes() for i := range bytes { bytes[i] ^= 0xff } if len(bytes) == 0 || bytes[0]&0x80 == 0 { c.add(0xff) } c.add(bytes...)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 29 21:28:33 UTC 2023 - 21.5K bytes - Viewed (0)