1<?php 2 3/** @generate-class-entries */ 4 5class GMP 6{ 7 public function __serialize(): array {} 8 9 public function __unserialize(array $data): void {} 10} 11 12function gmp_init(int|string $num, int $base = 0): GMP {} 13 14function gmp_import(string $data, int $word_size = 1, int $flags = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): GMP {} 15 16function gmp_export(GMP|int|string $num, int $word_size = 1, int $flags = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): string {} 17 18function gmp_intval(GMP|int|string $num): int {} 19 20function gmp_strval(GMP|int|string $num, int $base = 10): string {} 21 22function gmp_add(GMP|int|string $num1, GMP|int|string $num2): GMP {} 23 24function gmp_sub(GMP|int|string $num1, GMP|int|string $num2): GMP {} 25 26function gmp_mul(GMP|int|string $num1, GMP|int|string $num2): GMP {} 27 28/** 29 * @return array<int, GMP> 30 * @refcount 1 31 */ 32function gmp_div_qr(GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode = GMP_ROUND_ZERO): array {} 33 34function gmp_div_q(GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode = GMP_ROUND_ZERO): GMP {} 35 36function gmp_div_r(GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode = GMP_ROUND_ZERO): GMP {} 37 38/** @alias gmp_div_q */ 39function gmp_div(GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode = GMP_ROUND_ZERO): GMP {} 40 41function gmp_mod(GMP|int|string $num1, GMP|int|string $num2): GMP {} 42 43function gmp_divexact(GMP|int|string $num1, GMP|int|string $num2): GMP {} 44 45function gmp_neg(GMP|int|string $num): GMP {} 46 47function gmp_abs(GMP|int|string $num): GMP {} 48 49function gmp_fact(GMP|int|string $num): GMP {} 50 51function gmp_sqrt(GMP|int|string $num): GMP {} 52 53/** 54 * @return array<int, GMP> 55 * @refcount 1 56 */ 57function gmp_sqrtrem(GMP|int|string $num): array {} 58 59function gmp_root(GMP|int|string $num, int $nth): GMP {} 60 61/** 62 * @return array<int, GMP> 63 * @refcount 1 64 */ 65function gmp_rootrem(GMP|int|string $num, int $nth): array {} 66 67function gmp_pow(GMP|int|string $num, int $exponent): GMP {} 68 69function gmp_powm(GMP|int|string $num, GMP|int|string $exponent, GMP|int|string $modulus): GMP {} 70 71function gmp_perfect_square(GMP|int|string $num): bool {} 72 73function gmp_perfect_power(GMP|int|string $num): bool {} 74 75function gmp_prob_prime(GMP|int|string $num, int $repetitions = 10): int {} 76 77function gmp_gcd(GMP|int|string $num1, GMP|int|string $num2): GMP {} 78 79/** 80 * @return array<string, GMP> 81 * @refcount 1 82 */ 83function gmp_gcdext(GMP|int|string $num1, GMP|int|string $num2): array {} 84 85function gmp_lcm(GMP|int|string $num1, GMP|int|string $num2): GMP {} 86 87function gmp_invert(GMP|int|string $num1, GMP|int|string $num2): GMP|false {} 88 89function gmp_jacobi(GMP|int|string $num1, GMP|int|string $num2): int {} 90 91function gmp_legendre(GMP|int|string $num1, GMP|int|string $num2): int {} 92 93function gmp_kronecker(GMP|int|string $num1, GMP|int|string $num2): int {} 94 95function gmp_cmp(GMP|int|string $num1, GMP|int|string $num2): int {} 96 97function gmp_sign(GMP|int|string $num): int {} 98 99function gmp_random_seed(GMP|int|string $seed): void {} 100 101function gmp_random_bits(int $bits): GMP {} 102 103function gmp_random_range(GMP|int|string $min, GMP|int|string $max): GMP {} 104 105function gmp_and(GMP|int|string $num1, GMP|int|string $num2): GMP {} 106 107function gmp_or(GMP|int|string $num1, GMP|int|string $num2): GMP {} 108 109function gmp_com(GMP|int|string $num): GMP {} 110 111function gmp_xor(GMP|int|string $num1, GMP|int|string $num2): GMP {} 112 113function gmp_setbit(GMP $num, int $index, bool $value = true): void {} 114 115function gmp_clrbit(GMP $num, int $index): void {} 116 117function gmp_testbit(GMP|int|string $num, int $index): bool {} 118 119function gmp_scan0(GMP|int|string $num1, int $start): int {} 120 121function gmp_scan1(GMP|int|string $num1, int $start): int {} 122 123function gmp_popcount(GMP|int|string $num): int {} 124 125function gmp_hamdist(GMP|int|string $num1, GMP|int|string $num2): int {} 126 127function gmp_nextprime(GMP|int|string $num): GMP {} 128 129function gmp_binomial(GMP|int|string $n, int $k): GMP {} 130