1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
|
<?php
/** @generate-class-entries */
/**
* @var int
* @cvalue GMP_ROUND_ZERO
*/
const GMP_ROUND_ZERO = UNKNOWN;
/**
* @var int
* @cvalue GMP_ROUND_PLUSINF
*/
const GMP_ROUND_PLUSINF = UNKNOWN;
/**
* @var int
* @cvalue GMP_ROUND_MINUSINF
*/
const GMP_ROUND_MINUSINF = UNKNOWN;
#ifdef mpir_version
/**
* @var string
* @cvalue GMP_MPIR_VERSION_STRING
*/
const GMP_MPIR_VERSION = UNKNOWN;
#endif
/**
* @var string
* @cvalue GMP_VERSION_STRING
*/
const GMP_VERSION = UNKNOWN;
/**
* @var int
* @cvalue GMP_MSW_FIRST
*/
const GMP_MSW_FIRST = UNKNOWN;
/**
* @var int
* @cvalue GMP_LSW_FIRST
*/
const GMP_LSW_FIRST = UNKNOWN;
/**
* @var int
* @cvalue GMP_LITTLE_ENDIAN
*/
const GMP_LITTLE_ENDIAN = UNKNOWN;
/**
* @var int
* @cvalue GMP_BIG_ENDIAN
*/
const GMP_BIG_ENDIAN = UNKNOWN;
/**
* @var int
* @cvalue GMP_NATIVE_ENDIAN
*/
const GMP_NATIVE_ENDIAN = UNKNOWN;
final class GMP
{
public function __construct(int|string $num = 0, int $base = 0) {}
public function __serialize(): array {}
public function __unserialize(array $data): void {}
}
function gmp_init(int|string $num, int $base = 0): GMP {}
function gmp_import(string $data, int $word_size = 1, int $flags = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): GMP {}
function gmp_export(GMP|int|string $num, int $word_size = 1, int $flags = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): string {}
function gmp_intval(GMP|int|string $num): int {}
function gmp_strval(GMP|int|string $num, int $base = 10): string {}
function gmp_add(GMP|int|string $num1, GMP|int|string $num2): GMP {}
function gmp_sub(GMP|int|string $num1, GMP|int|string $num2): GMP {}
function gmp_mul(GMP|int|string $num1, GMP|int|string $num2): GMP {}
/**
* @return array<int, GMP>
* @refcount 1
*/
function gmp_div_qr(GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode = GMP_ROUND_ZERO): array {}
function gmp_div_q(GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode = GMP_ROUND_ZERO): GMP {}
function gmp_div_r(GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode = GMP_ROUND_ZERO): GMP {}
/** @alias gmp_div_q */
function gmp_div(GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode = GMP_ROUND_ZERO): GMP {}
function gmp_mod(GMP|int|string $num1, GMP|int|string $num2): GMP {}
function gmp_divexact(GMP|int|string $num1, GMP|int|string $num2): GMP {}
function gmp_neg(GMP|int|string $num): GMP {}
function gmp_abs(GMP|int|string $num): GMP {}
function gmp_fact(GMP|int|string $num): GMP {}
function gmp_sqrt(GMP|int|string $num): GMP {}
/**
* @return array<int, GMP>
* @refcount 1
*/
function gmp_sqrtrem(GMP|int|string $num): array {}
function gmp_root(GMP|int|string $num, int $nth): GMP {}
/**
* @return array<int, GMP>
* @refcount 1
*/
function gmp_rootrem(GMP|int|string $num, int $nth): array {}
function gmp_pow(GMP|int|string $num, int $exponent): GMP {}
function gmp_powm(GMP|int|string $num, GMP|int|string $exponent, GMP|int|string $modulus): GMP {}
function gmp_perfect_square(GMP|int|string $num): bool {}
function gmp_perfect_power(GMP|int|string $num): bool {}
function gmp_prob_prime(GMP|int|string $num, int $repetitions = 10): int {}
function gmp_gcd(GMP|int|string $num1, GMP|int|string $num2): GMP {}
/**
* @return array<string, GMP>
* @refcount 1
*/
function gmp_gcdext(GMP|int|string $num1, GMP|int|string $num2): array {}
function gmp_lcm(GMP|int|string $num1, GMP|int|string $num2): GMP {}
function gmp_invert(GMP|int|string $num1, GMP|int|string $num2): GMP|false {}
function gmp_jacobi(GMP|int|string $num1, GMP|int|string $num2): int {}
function gmp_legendre(GMP|int|string $num1, GMP|int|string $num2): int {}
function gmp_kronecker(GMP|int|string $num1, GMP|int|string $num2): int {}
function gmp_cmp(GMP|int|string $num1, GMP|int|string $num2): int {}
function gmp_sign(GMP|int|string $num): int {}
function gmp_random_seed(GMP|int|string $seed): void {}
function gmp_random_bits(int $bits): GMP {}
function gmp_random_range(GMP|int|string $min, GMP|int|string $max): GMP {}
function gmp_and(GMP|int|string $num1, GMP|int|string $num2): GMP {}
function gmp_or(GMP|int|string $num1, GMP|int|string $num2): GMP {}
function gmp_com(GMP|int|string $num): GMP {}
function gmp_xor(GMP|int|string $num1, GMP|int|string $num2): GMP {}
function gmp_setbit(GMP $num, int $index, bool $value = true): void {}
function gmp_clrbit(GMP $num, int $index): void {}
function gmp_testbit(GMP|int|string $num, int $index): bool {}
function gmp_scan0(GMP|int|string $num1, int $start): int {}
function gmp_scan1(GMP|int|string $num1, int $start): int {}
function gmp_popcount(GMP|int|string $num): int {}
function gmp_hamdist(GMP|int|string $num1, GMP|int|string $num2): int {}
function gmp_nextprime(GMP|int|string $num): GMP {}
function gmp_binomial(GMP|int|string $n, int $k): GMP {}
|