gmp.stub.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?php
  2. /** @generate-class-entries */
  3. class GMP
  4. {
  5. public function __serialize(): array {}
  6. public function __unserialize(array $data): void {}
  7. }
  8. function gmp_init(int|string $num, int $base = 0): GMP {}
  9. function gmp_import(string $data, int $word_size = 1, int $flags = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): GMP {}
  10. function gmp_export(GMP|int|string $num, int $word_size = 1, int $flags = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): string {}
  11. function gmp_intval(GMP|int|string $num): int {}
  12. function gmp_strval(GMP|int|string $num, int $base = 10): string {}
  13. function gmp_add(GMP|int|string $num1, GMP|int|string $num2): GMP {}
  14. function gmp_sub(GMP|int|string $num1, GMP|int|string $num2): GMP {}
  15. function gmp_mul(GMP|int|string $num1, GMP|int|string $num2): GMP {}
  16. /**
  17. * @return array<int, GMP>
  18. * @refcount 1
  19. */
  20. function gmp_div_qr(GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode = GMP_ROUND_ZERO): array {}
  21. function gmp_div_q(GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode = GMP_ROUND_ZERO): GMP {}
  22. function gmp_div_r(GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode = GMP_ROUND_ZERO): GMP {}
  23. /** @alias gmp_div_q */
  24. function gmp_div(GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode = GMP_ROUND_ZERO): GMP {}
  25. function gmp_mod(GMP|int|string $num1, GMP|int|string $num2): GMP {}
  26. function gmp_divexact(GMP|int|string $num1, GMP|int|string $num2): GMP {}
  27. function gmp_neg(GMP|int|string $num): GMP {}
  28. function gmp_abs(GMP|int|string $num): GMP {}
  29. function gmp_fact(GMP|int|string $num): GMP {}
  30. function gmp_sqrt(GMP|int|string $num): GMP {}
  31. /**
  32. * @return array<int, GMP>
  33. * @refcount 1
  34. */
  35. function gmp_sqrtrem(GMP|int|string $num): array {}
  36. function gmp_root(GMP|int|string $num, int $nth): GMP {}
  37. /**
  38. * @return array<int, GMP>
  39. * @refcount 1
  40. */
  41. function gmp_rootrem(GMP|int|string $num, int $nth): array {}
  42. function gmp_pow(GMP|int|string $num, int $exponent): GMP {}
  43. function gmp_powm(GMP|int|string $num, GMP|int|string $exponent, GMP|int|string $modulus): GMP {}
  44. function gmp_perfect_square(GMP|int|string $num): bool {}
  45. function gmp_perfect_power(GMP|int|string $num): bool {}
  46. function gmp_prob_prime(GMP|int|string $num, int $repetitions = 10): int {}
  47. function gmp_gcd(GMP|int|string $num1, GMP|int|string $num2): GMP {}
  48. /**
  49. * @return array<string, GMP>
  50. * @refcount 1
  51. */
  52. function gmp_gcdext(GMP|int|string $num1, GMP|int|string $num2): array {}
  53. function gmp_lcm(GMP|int|string $num1, GMP|int|string $num2): GMP {}
  54. function gmp_invert(GMP|int|string $num1, GMP|int|string $num2): GMP|false {}
  55. function gmp_jacobi(GMP|int|string $num1, GMP|int|string $num2): int {}
  56. function gmp_legendre(GMP|int|string $num1, GMP|int|string $num2): int {}
  57. function gmp_kronecker(GMP|int|string $num1, GMP|int|string $num2): int {}
  58. function gmp_cmp(GMP|int|string $num1, GMP|int|string $num2): int {}
  59. function gmp_sign(GMP|int|string $num): int {}
  60. function gmp_random_seed(GMP|int|string $seed): void {}
  61. function gmp_random_bits(int $bits): GMP {}
  62. function gmp_random_range(GMP|int|string $min, GMP|int|string $max): GMP {}
  63. function gmp_and(GMP|int|string $num1, GMP|int|string $num2): GMP {}
  64. function gmp_or(GMP|int|string $num1, GMP|int|string $num2): GMP {}
  65. function gmp_com(GMP|int|string $num): GMP {}
  66. function gmp_xor(GMP|int|string $num1, GMP|int|string $num2): GMP {}
  67. function gmp_setbit(GMP $num, int $index, bool $value = true): void {}
  68. function gmp_clrbit(GMP $num, int $index): void {}
  69. function gmp_testbit(GMP|int|string $num, int $index): bool {}
  70. function gmp_scan0(GMP|int|string $num1, int $start): int {}
  71. function gmp_scan1(GMP|int|string $num1, int $start): int {}
  72. function gmp_popcount(GMP|int|string $num): int {}
  73. function gmp_hamdist(GMP|int|string $num1, GMP|int|string $num2): int {}
  74. function gmp_nextprime(GMP|int|string $num): GMP {}
  75. function gmp_binomial(GMP|int|string $n, int $k): GMP {}