- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 517 for bigN (0.06 sec)
-
src/crypto/x509/oid.go
} return dst } func base128BigIntLength(n *big.Int) int { if n.Cmp(big.NewInt(0)) == 0 { return 1 } return (n.BitLen() + 6) / 7 } func appendBase128BigInt(dst []byte, n *big.Int) []byte { if n.Cmp(big.NewInt(0)) == 0 { return append(dst, 0) } for i := base128BigIntLength(n) - 1; i >= 0; i-- { o := byte(big.NewInt(0).Rsh(n, uint(i)*7).Bits()[0]) o &= 0x7f if i != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 19:10:38 UTC 2024 - 8.3K bytes - Viewed (0) -
src/internal/types/testdata/check/lookup1.go
} func _() { var x big.Float _ = x.neg // ERROR "x.neg undefined (type big.Float has no field or method neg, but does have method Neg)" _ = x.nEg // ERROR "x.nEg undefined (type big.Float has no field or method nEg)" _ = x.Neg _ = x.NEg // ERROR "x.NEg undefined (type big.Float has no field or method NEg, but does have method Neg)"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 07 16:41:56 UTC 2024 - 2.7K bytes - Viewed (0) -
src/crypto/internal/nistec/nistec_test.go
t.Run("1", func(t *testing.T) { checkScalar(t, big.NewInt(1).FillBytes(make([]byte, byteLen))) }) t.Run("N-1", func(t *testing.T) { checkScalar(t, new(big.Int).Sub(c.Params().N, big.NewInt(1)).Bytes()) }) t.Run("N", func(t *testing.T) { checkScalar(t, c.Params().N.Bytes()) }) t.Run("N+1", func(t *testing.T) { checkScalar(t, new(big.Int).Add(c.Params().N, big.NewInt(1)).Bytes()) }) t.Run("all1s", func(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 12 18:48:23 UTC 2023 - 8.4K bytes - Viewed (0) -
misc/cgo/gmp/fib.go
// and foreign code on multiple pthreads. package main import ( big "." "runtime" ) func fibber(c chan *big.Int, out chan string, n int64) { // Keep the fibbers in dedicated operating system // threads, so that this program tests coordination // between pthreads and not just goroutines. runtime.LockOSThread() i := big.NewInt(n) if n == 0 { c <- i } for { j := <-c out <- j.String()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 10 22:32:35 UTC 2023 - 919 bytes - Viewed (0) -
src/crypto/x509/pkcs1.go
"encoding/asn1" "errors" "math/big" ) // pkcs1PrivateKey is a structure which mirrors the PKCS #1 ASN.1 for an RSA private key. type pkcs1PrivateKey struct { Version int N *big.Int E int D *big.Int P *big.Int Q *big.Int // We ignore these values, if present, because rsa will calculate them. Dp *big.Int `asn1:"optional"` Dq *big.Int `asn1:"optional"`
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 4.7K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue49736.go
// license that can be found in the LICENSE file. package p import "math/big" // From go.dev/issue/18419 func _(x *big.Float) { x.form /* ERROR "x.form undefined (cannot refer to unexported field form)" */ () } // From go.dev/issue/31053 func _() { _ = big.Float{form /* ERROR "cannot refer to unexported field form in struct literal of type big.Float" */ : 0}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 07 16:41:56 UTC 2024 - 478 bytes - Viewed (0) -
test/fixedbugs/issue62360.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "fmt" "math/big" ) //go:noinline func f(x uint32) *big.Int { return big.NewInt(int64(x)) } func main() { b := f(0xffffffff) c := big.NewInt(0xffffffff) if b.Cmp(c) != 0 { panic(fmt.Sprintf("b:%x c:%x", b, c)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 30 15:15:28 UTC 2023 - 414 bytes - Viewed (0) -
istioctl/pkg/util/formatting/formatter_test.go
"Error [B1] (SoapBubble) Explosion accident: the bubble is too big\n" + "Warning [C1] (GrandCastle) Collapse danger: the castle is too old", )) } func TestFormatter_PrintLogWithColor(t *testing.T) { g := NewWithT(t) firstMsg := diag.NewMessage( diag.NewMessageType(diag.Error, "B1", "Explosion accident: %v"), diag.MockResource("SoapBubble"), "the bubble is too big", ) secondMsg := diag.NewMessage(
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 4.1K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/gen/cmpConstGen.go
default: panic("unexpected type") } return cmp(min, "<=", val) && cmp(val, "<=", max) } func getValues(typ string) []*big.Int { Uint := func(v uint64) *big.Int { return big.NewInt(0).SetUint64(v) } Int := func(v int64) *big.Int { return big.NewInt(0).SetInt64(v) } values := []*big.Int{ // limits Uint(maxU64), Uint(maxU64 - 1), Uint(maxI64 + 1), Uint(maxI64), Uint(maxI64 - 1), Uint(maxU32 + 1),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 6.4K bytes - Viewed (0) -
src/crypto/rsa/rsa.go
} // Fill in the backwards-compatibility *big.Int values. if priv.Precomputed.Dp != nil { return } priv.Precomputed.Dp = new(big.Int).Sub(priv.Primes[0], bigOne) priv.Precomputed.Dp.Mod(priv.D, priv.Precomputed.Dp) priv.Precomputed.Dq = new(big.Int).Sub(priv.Primes[1], bigOne) priv.Precomputed.Dq.Mod(priv.D, priv.Precomputed.Dq) priv.Precomputed.Qinv = new(big.Int).ModInverse(priv.Primes[1], priv.Primes[0])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:11:18 UTC 2024 - 23.4K bytes - Viewed (0)