- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 670 for big4 (0.08 sec)
-
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/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) -
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) -
api/go1.5.txt
pkg math/big, const MaxPrec ideal-int pkg math/big, const MinExp = -2147483648 pkg math/big, const MinExp ideal-int pkg math/big, const ToNearestAway = 1 pkg math/big, const ToNearestAway RoundingMode pkg math/big, const ToNearestEven = 0 pkg math/big, const ToNearestEven RoundingMode pkg math/big, const ToNegativeInf = 4 pkg math/big, const ToNegativeInf RoundingMode pkg math/big, const ToPositiveInf = 5
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 30 21:14:09 UTC 2015 - 46.6K bytes - Viewed (0) -
pkg/registry/core/service/allocator/bitmap.go
// allocated is a bit array of the allocated items in the range allocated *big.Int } // AllocationBitmap implements Interface and Snapshottable var _ Interface = &AllocationBitmap{} var _ Snapshottable = &AllocationBitmap{} // bitAllocator represents a search strategy in the allocation map for a valid item. type bitAllocator interface { AllocateBit(allocated *big.Int, max, count int) (int, bool) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 25 20:32:40 UTC 2023 - 7.6K bytes - Viewed (0) -
src/crypto/internal/mlkem768/mlkem768_test.go
func TestZetas(t *testing.T) { ζ := big.NewInt(17) q := big.NewInt(q) for k, zeta := range zetas { // ζ^BitRev7(k) mod q exp := new(big.Int).Exp(ζ, big.NewInt(int64(BitRev7(uint8(k)))), q) if big.NewInt(int64(zeta)).Cmp(exp) != 0 { t.Errorf("zetas[%d] = %v, expected %v", k, zeta, exp) } } } func TestGammas(t *testing.T) { ζ := big.NewInt(17) q := big.NewInt(q) for k, gamma := range gammas {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 15:27:18 UTC 2024 - 10.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/DefaultProviderFactoryTest.groovy
String | 'hello' File | TEST_FILE } def "can zip two providers"() { def big = withValues("big") def black = withValues("black") def cat = withValues("cat") when: def zipped = providerFactory.zip( providerFactory.zip(big, black) { s1, s2 -> "$s1 $s2" } , cat) { s1, s2 -> "${s1.capitalize()} ${s2}"} then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 4K bytes - Viewed (0) -
src/go/constant/value.go
func (intVal) implementsValue() {} func (floatVal) implementsValue() {} func (complexVal) implementsValue() {} func newInt() *big.Int { return new(big.Int) } func newRat() *big.Rat { return new(big.Rat) } func newFloat() *big.Float { return new(big.Float).SetPrec(prec) } func i64toi(x int64Val) intVal { return intVal{newInt().SetInt64(int64(x))} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 34K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/math.go
// d == result * factor ^ times // d may be modified in place. // If d == 0, then the return values will be (0, 0) func removeBigIntFactors(d, factor *big.Int) (result *big.Int, times int32) { q := big.NewInt(0) m := big.NewInt(0) for d.Cmp(bigZero) != 0 { q.DivMod(d, factor, m) if m.Cmp(bigZero) != 0 { break } times++ d, q = q, d } return d, times
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 23 13:07:14 UTC 2020 - 7.3K bytes - Viewed (0) -
src/internal/types/testdata/check/importdecl0/importdecl0a.go
) import "math" /* ERROR "imported and not used" */ import m /* ERROR "imported as m and not used" */ "math" import _ "math" import ( "math/big" /* ERROR "imported and not used" */ b /* ERROR "imported as b and not used" */ "math/big" _ "math/big" ) import "fmt" import f1 "fmt" import f2 "fmt" // reflect.flag must not be visible in this package type flag int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 1.3K bytes - Viewed (0)