Home
last modified time | relevance | path

Searched refs:BigInt (Results 1 – 13 of 13) sorted by relevance

/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/
H A Dbigint.d46 struct BigInt struct
132 auto big1 = BigInt(r1); argument
133 assert(big1 == BigInt(101));
136 auto big2 = BigInt(r2); argument
137 assert(big2 == BigInt(1000));
140 auto big3 = BigInt(r3); argument
141 assert(big3 == BigInt(0));
144 assertThrown!ConvException(BigInt(r4)); argument
159 auto bigData = BigInt(data); argument
160 assert(data == BigInt("1_000_000_000_000"));
[all …]
H A Dnumeric.d2725 import std.bigint : BigInt;
2726 assert(gcd(BigInt("71_000_000_000_000_000_000"),
2727 BigInt("31_000_000_000_000_000_000")) ==
2728 BigInt("1_000_000_000_000_000_000"));
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/
H A Dbigint.d48 struct BigInt struct
135 auto big1 = BigInt(r1); argument
136 assert(big1 == BigInt(101));
139 auto big2 = BigInt(r2); argument
140 assert(big2 == BigInt(1000));
143 auto big3 = BigInt(r3); argument
144 assert(big3 == BigInt(0));
147 assertThrown!ConvException(BigInt(r4)); argument
177 auto b1 = BigInt(false, magnitude); argument
179 auto b2 = BigInt(true, magnitude); argument
[all …]
H A Dnumeric.d3152 import std.bigint : BigInt;
3153 assert(gcd(BigInt("71_000_000_000_000_000_000"),
3154 BigInt("31_000_000_000_000_000_000")) ==
3155 BigInt("1_000_000_000_000_000_000"));
3157 assert(gcd(BigInt(0), BigInt(1234567)) == BigInt(1234567));
3158 assert(gcd(BigInt(1234567), BigInt(0)) == BigInt(1234567));
3188 import std.bigint : BigInt;
3189 assert(gcd(BigInt(2), BigInt(1)) == BigInt(1));
3195 import std.bigint : BigInt;
3196 const a = BigInt("123143238472389492934020");
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/
H A Dbntests.pl12 use Math::BigInt;
23 return Math::BigInt->from_hex($sign.$hex);
/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Dbntests.pl12 use Math::BigInt;
23 return Math::BigInt->from_hex($sign.$hex);
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/recipes/
H A D10-test_bn.t13 use Math::BigInt;
/netbsd-src/crypto/external/bsd/openssl/dist/test/recipes/
H A D10-test_bn.t13 use Math::BigInt;
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/algorithm/
H A Diteration.d7563 immutable BigInt[] a = BigInt("1_000_000_000_000_000_000").repeat(10).array();
7566 auto sb = b.sum(BigInt(0)); //reduce ulongs into bigint
7567 assert(sa == BigInt("10_000_000_000_000_000_000"));
7568 assert(sb == (BigInt(ulong.max/2) * 10));
7691 import std.bigint : BigInt;
7695 auto bigint_arr = [BigInt("1"), BigInt("2"), BigInt("3"), BigInt("6")];
7696 auto bigint_arr2 = new ReferenceInputRange!BigInt([
7697 BigInt("1"), BigInt("2"), BigInt("3"), BigInt("6")
7699 assert(bigint_arr.mean(BigInt(0)) == BigInt("3"));
7700 assert(bigint_arr2.mean(BigInt(0)) == BigInt("3"));
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/algorithm/
H A Diteration.d4931 immutable BigInt[] a = BigInt("1_000_000_000_000_000_000").repeat(10).array();
4934 auto sb = b.sum(BigInt(0)); //reduce ulongs into bigint
4935 assert(sa == BigInt("10_000_000_000_000_000_000"));
4936 assert(sb == (BigInt(ulong.max/2) * 10));
/netbsd-src/external/lgpl3/gmp/dist/doc/
H A Dgmp.info-16257 Compatible with Math::BigInt, but not as many functions as the
6259 * Math::BigInt::GMP <https://www.cpan.org/>
6260 Plug Math::GMP into normal Math::BigInt operations.
H A Dgmp.texi7561 Math::GMP @spaceuref{https://www.cpan.org/} @* Compatible with Math::BigInt, but
7564 Math::BigInt::GMP @spaceuref{https://www.cpan.org/} @* Plug Math::GMP into
7565 normal Math::BigInt operations.
/netbsd-src/external/lgpl3/gmp/dist/
H A DChangeLog21667 (Language Bindings): Add Math::BigInt::GMP.