Home
last modified time | relevance | path

Searched refs:gmp_init (Results 1 – 25 of 48) sorted by relevance

12

/PHP-7.0/ext/gmp/tests/
H A D003.phpt8 $test[] = gmp_init("0b10011010010");
10 $test[] = gmp_init("10011010010");
14 $test[] = gmp_init("02322");
15 $test[] = gmp_init("02322", 8);
16 $test[] = gmp_init("2322");
17 $test[] = gmp_init("2322", 8);
20 $test[] = gmp_init("1234");
21 $test[] = gmp_init("1234", 10);
24 $test[] = gmp_init("0x4d2");
26 $test[] = gmp_init("4d2");
[all …]
H A Dgmp_init.phpt2 gmp_init() basic tests
8 var_dump(gmp_init("98765678"));
9 var_dump(gmp_strval(gmp_init("98765678")));
10 var_dump(gmp_strval(gmp_init()));
11 var_dump(gmp_init());
12 var_dump(gmp_init(1,2,3,4));
13 var_dump(gmp_init(1,-1));
14 var_dump(gmp_init("",36));
15 var_dump(gmp_init("foo",3));
16 var_dump(gmp_strval(gmp_init("993247326237679187178",3)));
[all …]
H A Dcomparison.phpt8 $arr = [gmp_init(0), -3, gmp_init(2), 1];
12 var_dump(min(gmp_init(3), 4));
13 var_dump(max(gmp_init(3), 4));
H A Dbug50175.phpt2 Bug #50175: gmp_init() results 0 on given base and number starting with 0x or 0b
6 var_dump(gmp_init('0bcd', 16));
7 var_dump(gmp_init('0xyz', 36));
H A Dbug69803.phpt6 $a = gmp_init(100);
7 $b = gmp_init(200);
12 $b = gmp_init(200);
H A Dgmp_clrbit.phpt8 $n = gmp_init(0);
12 $n = gmp_init(-1);
16 $n = gmp_init("1000000");
20 $n = gmp_init("1000000");
24 $n = gmp_init("238462734628347239571823641234");
H A Dgmp_setbit.phpt8 $n = gmp_init(-1);
12 $n = gmp_init(5);
16 $n = gmp_init(5);
20 $n = gmp_init(5);
24 $n = gmp_init("100000000000");
H A Dgmp_gcd.phpt16 $n = gmp_init("8127346234");
18 $n = gmp_init("8127346234");
20 $n = gmp_init("8127346234");
22 $n = gmp_init("8127346234");
H A Dgmp_pown.phpt15 $n = gmp_init(11);
17 $e = gmp_init(7);
19 $m = gmp_init(900);
23 var_dump(gmp_powm(5, "11", gmp_init(0)));
33 $n = gmp_init("-5");
36 $n = gmp_init("0");
H A Dgmp_testbit.phpt10 $n = gmp_init(0);
16 $n = gmp_init(-1);
20 $n = gmp_init("1000000");
30 $n = gmp_init("238462734628347239571823641234");
H A Dgmp_perfect_square.phpt17 $n = gmp_init(100101);
19 $n = gmp_init(64);
21 $n = gmp_init(-5);
H A Dgmp_prob_prime.phpt22 $n = gmp_init("23476812735411");
26 $n = gmp_init("19481923");
28 $n = gmp_init(0);
H A Dbug52906.phpt22 echo "{$data[0]}%{$data[1]}=".gmp_strval(gmp_mod(gmp_init($data[0]), gmp_init($data[1])));
H A Dgmp_sqrt.phpt14 $n = gmp_init(0);
16 $n = gmp_init(-144);
18 $n = gmp_init(777);
H A Dgmp_div_qr.phpt13 var_dump(gmp_div_qr(gmp_init(1), gmp_init(0)));
19 var_dump(gmp_div_qr(gmp_init(1123123), gmp_init(123)));
H A Dserialize.phpt8 var_dump($n = gmp_init(42));
12 $n = gmp_init(13);
H A Dgmp_random_range.phpt8 $minusTen = gmp_init(-10);
9 $plusTen = gmp_init(10);
10 $zero = gmp_init(0);
H A Dgmp_cmp.phpt15 $n = gmp_init("827278512385463739");
17 $n1 = gmp_init("827278512385463739");
H A Dgmp_divexact.phpt28 $n = gmp_init("10000000000000000000");
35 $n1 = gmp_init("-100000000000000000000000000");
H A Dgmp_neg.phpt15 $n = gmp_init("0");
17 $n = gmp_init("12345678901234567890");
H A Dgmp_sign.phpt14 $n = gmp_init("098909878976786545");
32 Warning: gmp_init(): Unable to convert variable to GMP - string is not an integer in %s on line %d
H A Dgmp_com.phpt16 $n = gmp_init("98765467");
18 $n = gmp_init("98765463337");
H A Dgmp_mod.phpt17 $a = gmp_init("-100000000");
18 $b = gmp_init("353467");
H A Dgmp_hamdist.phpt13 $n = gmp_init("8765434567");
14 $n1 = gmp_init("987654445678");
H A Dbug659967.phpt9 $gmp = gmp_init('10');

Completed in 20 milliseconds

12