Home
last modified time | relevance | path

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

1234

/PHP-8.2/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 Dgmp_init_integer_notations.phpt2 gmp_init() with various integer notations
8 var_dump(gmp_init("0x16"));
9 var_dump(gmp_init("0X16"));
10 var_dump(gmp_init("0o16"));
11 var_dump(gmp_init("0o16"));
12 var_dump(gmp_init("016"));
13 var_dump(gmp_init("016"));
14 var_dump(gmp_init("0b11"));
15 var_dump(gmp_init("0b11"));
H A Dsurprising_integer_literals.phpt20 var_dump(gmp_init($value));
27 gmp_init(): Argument #1 ($num) is not an integer string
28 gmp_init(): Argument #1 ($num) is not an integer string
29 gmp_init(): Argument #1 ($num) is not an integer string
30 gmp_init(): Argument #1 ($num) is not an integer string
31 gmp_init(): Argument #1 ($num) is not an integer string
32 gmp_init(): Argument #1 ($num) is not an integer string
33 gmp_init(): Argument #1 ($num) is not an integer string
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 Dgmp_pow_fpe.phpt7 $g = gmp_init(256);
21 gmp_pow(gmp_add(gmp_mul(gmp_init(PHP_INT_MAX), gmp_init(PHP_INT_MAX)), 3), 256);
26 gmp_pow(gmp_init(PHP_INT_MAX), 256);
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 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 Dbug81119.phpt16 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) < []);
18 test(fn($WRONG_SCOPE_1 = 0, $WRONG_SCOPE_2 = 0) => gmp_init(1) + "x");
19 test(fn($WRONG_SCOPE_1 = 0, $WRONG_SCOPE_2 = 0) => gmp_init(1) + []);
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");

Completed in 20 milliseconds

1234