- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 137 for bigN (0.03 sec)
-
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/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) -
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) -
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) -
src/crypto/x509/platform_test.go
{ name: "valid", cert: &Certificate{ SerialNumber: big.NewInt(1), DNSNames: []string{"valid.testing.golang.invalid"}, NotBefore: now.Add(-time.Hour), NotAfter: now.Add(time.Hour), ExtKeyUsage: []ExtKeyUsage{ExtKeyUsageServerAuth}, }, }, { name: "valid (with name)", cert: &Certificate{ SerialNumber: big.NewInt(1), DNSNames: []string{"valid.testing.golang.invalid"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 17:18:29 UTC 2024 - 7.2K bytes - Viewed (0) -
test/fixedbugs/issue15277.go
package main import "runtime" type big [10 << 20]byte func f(x *big, start int64) { if delta := inuse() - start; delta < 9<<20 { println("after alloc: expected delta at least 9MB, got: ", delta) } runtime.KeepAlive(x) x = nil if delta := inuse() - start; delta > 1<<20 { println("after drop: expected delta below 1MB, got: ", delta) } x = new(big) if delta := inuse() - start; delta < 9<<20 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 851 bytes - Viewed (0) -
test/fixedbugs/issue20780b.go
package main import "fmt" const N = 2e6 type Big = [N]int var sink interface{} func main() { g(0, f(0)) x1 := f(1) sink = &x1 g(1, x1) g(7, f(7)) g(1, x1) x3 := f(3) sink = &x3 g(1, x1) g(3, x3) h(f(0), x1, f(2), x3, f(4)) } //go:noinline func f(k int) (x Big) { for i := range x { x[i] = k*N + i } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 860 bytes - Viewed (0) -
src/crypto/rand/util.go
return p, nil } } } // Int returns a uniform random value in [0, max). It panics if max <= 0. func Int(rand io.Reader, max *big.Int) (n *big.Int, err error) { if max.Sign() <= 0 { panic("crypto/rand: argument to Int is <= 0") } n = new(big.Int) n.Sub(max, n.SetUint64(1)) // bitLen is the maximum bit length needed to encode a value < max. bitLen := n.BitLen() if bitLen == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 2.4K bytes - Viewed (0) -
src/cmd/compile/internal/ir/const.go
) const ( // Maximum size in bits for big.Ints before signaling // overflow and also mantissa precision for big.Floats. ConstPrec = 512 ) func BigFloat(v constant.Value) *big.Float { f := new(big.Float) f.SetPrec(ConstPrec) switch u := constant.Val(v).(type) { case int64: f.SetInt64(u) case *big.Int: f.SetInt(u) case *big.Float: f.Set(u) case *big.Rat: f.SetRat(u) default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 18:53:26 UTC 2023 - 4K bytes - Viewed (0)