Home
last modified time | relevance | path

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

123

/PHP-8.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");
27 $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")));
11 var_dump(gmp_init(1,-1));
17 var_dump(gmp_init("",36));
22 var_dump(gmp_init("foo",3));
27 var_dump(gmp_strval(gmp_init("993247326237679187178",3)));
40 gmp_init(): Argument #2 ($base) must be between 2 and 62
41 gmp_init(): Argument #1 ($num) is not an integer string
42 gmp_init(): Argument #1 ($num) is not an integer string
[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 Dgmp_kronecker.phpt9 var_dump(gmp_kronecker(gmp_init(23), 12));
10 var_dump(gmp_kronecker(23, gmp_init(12)));
11 var_dump(gmp_kronecker(gmp_init(23), gmp_init(12)));
H A Dgh9308.phpt2 Bug GH-9308: GMP throws the wrong error when a GMP object is passed to gmp_init()
12 $gmp = gmp_init(gmp_init(123));
19 gmp_init(): Argument #1 ($num) must be of type string|int, GMP given
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_clrbit.phpt8 $n = gmp_init(0);
12 $n = gmp_init(-1);
20 $n = gmp_init("1000000");
28 $n = gmp_init("1000000");
32 $n = gmp_init("238462734628347239571823641234");
H A Dbug81119.phpt14 test(fn($WRONG_SCOPE_1 = 0, $WRONG_SCOPE_2 = 0) => gmp_init(1) < "x");
15 test(fn($WRONG_SCOPE_1 = 0, $WRONG_SCOPE_2 = 0) => gmp_init(1) < []);
16 test(fn($WRONG_SCOPE_1 = 0, $WRONG_SCOPE_2 = 0) => gmp_init(1) + "x");
17 test(fn($WRONG_SCOPE_1 = 0, $WRONG_SCOPE_2 = 0) => gmp_init(1) + []);
H A Dbug50175.phpt2 Bug #50175: gmp_init() results 0 on given base and number starting with 0x or 0b
8 var_dump(gmp_init('0bcd', 16));
9 var_dump(gmp_init('0xyz', 36));
H A Dgmp_setbit.phpt8 $n = gmp_init(-1);
12 $n = gmp_init(5);
20 $n = gmp_init(5);
24 $n = gmp_init(5);
28 $n = gmp_init("100000000000");
H A Dbug69803.phpt8 $a = gmp_init(100);
9 $b = gmp_init(200);
14 $b = gmp_init(200);
H A Dgmp_pown.phpt15 $n = gmp_init(11);
17 $e = gmp_init(7);
19 $m = gmp_init(900);
28 var_dump(gmp_powm(5, "11", gmp_init(0)));
55 $n = gmp_init("-5");
61 $n = gmp_init("0");
H A Dbug80560.phpt9 'gmp_init',
64 echo 'Explicit base with gmp_init:', \PHP_EOL;
67 var_dump(gmp_init('0X', 16));
72 var_dump(gmp_init('0x', 16));
79 var_dump(gmp_init('0B', 2));
84 var_dump(gmp_init('0b', 2));
214 Explicit base with gmp_init:
216 gmp_init(): Argument #1 ($num) is not an integer string
217 gmp_init(): Argument #1 ($num) is not an integer string
219 gmp_init(): Argument #1 ($num) is not an integer string
[all …]
H A Dgmp_testbit.phpt8 $n = gmp_init(0);
20 $n = gmp_init(-1);
28 $n = gmp_init("1000000");
38 $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 Dgmp_sqrt.phpt23 $n = gmp_init(0);
25 $n = gmp_init(-144);
31 $n = gmp_init(777);
H A Dbug52906.phpt22 echo "{$data[0]}%{$data[1]}=".gmp_strval(gmp_mod(gmp_init($data[0]), gmp_init($data[1])));
H A Dgmp_lcm.phpt13 var_dump(gmp_lcm(gmp_init(99), gmp_init(77)));
H A Dcomparison_invalid.phpt9 var_dump("hapfegfbu" > gmp_init(0));
15 var_dump((new DateTime()) > gmp_init(0));
H A Dgmp_div_qr.phpt16 var_dump(gmp_div_qr(gmp_init(1), gmp_init(0)));
30 var_dump(gmp_div_qr(gmp_init(1123123), gmp_init(123)));
H A Dgmp_cmp.phpt15 $n = gmp_init("827278512385463739");
17 $n1 = gmp_init("827278512385463739");
H A Dgmp_random_range.phpt8 $minusTen = gmp_init(-10);
9 $plusTen = gmp_init(10);
10 $zero = gmp_init(0);
H A Dserialize.phpt8 var_dump($n = gmp_init(42));
12 $n = gmp_init(13);
H A Dgmp_divexact.phpt29 $n = gmp_init("10000000000000000000");
36 $n1 = gmp_init("-100000000000000000000000000");

Completed in 17 milliseconds

123