php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
gmp.stub.php File Reference

Go to the source code of this file.

Data Structures

class  GMP
 

Functions

 gmp_init (int|string $num, int $base=0)
 
 gmp_import (string $data, int $word_size=1, int $flags=GMP_MSW_FIRST|GMP_NATIVE_ENDIAN)
 
 gmp_export (GMP|int|string $num, int $word_size=1, int $flags=GMP_MSW_FIRST|GMP_NATIVE_ENDIAN)
 
 gmp_intval (GMP|int|string $num)
 
 gmp_strval (GMP|int|string $num, int $base=10)
 
 gmp_add (GMP|int|string $num1, GMP|int|string $num2)
 
 gmp_sub (GMP|int|string $num1, GMP|int|string $num2)
 
 gmp_mul (GMP|int|string $num1, GMP|int|string $num2)
 
 gmp_div_qr (GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode=GMP_ROUND_ZERO)
 
 gmp_div_q (GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode=GMP_ROUND_ZERO)
 
 gmp_div_r (GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode=GMP_ROUND_ZERO)
 
 gmp_div (GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode=GMP_ROUND_ZERO)
 
 gmp_mod (GMP|int|string $num1, GMP|int|string $num2)
 
 gmp_divexact (GMP|int|string $num1, GMP|int|string $num2)
 
 gmp_neg (GMP|int|string $num)
 
 gmp_abs (GMP|int|string $num)
 
 gmp_fact (GMP|int|string $num)
 
 gmp_sqrt (GMP|int|string $num)
 
 gmp_sqrtrem (GMP|int|string $num)
 
 gmp_root (GMP|int|string $num, int $nth)
 
 gmp_rootrem (GMP|int|string $num, int $nth)
 
 gmp_pow (GMP|int|string $num, int $exponent)
 
 gmp_powm (GMP|int|string $num, GMP|int|string $exponent, GMP|int|string $modulus)
 
 gmp_perfect_square (GMP|int|string $num)
 
 gmp_perfect_power (GMP|int|string $num)
 
 gmp_prob_prime (GMP|int|string $num, int $repetitions=10)
 
 gmp_gcd (GMP|int|string $num1, GMP|int|string $num2)
 
 gmp_gcdext (GMP|int|string $num1, GMP|int|string $num2)
 
 gmp_lcm (GMP|int|string $num1, GMP|int|string $num2)
 
 gmp_invert (GMP|int|string $num1, GMP|int|string $num2)
 
 gmp_jacobi (GMP|int|string $num1, GMP|int|string $num2)
 
 gmp_legendre (GMP|int|string $num1, GMP|int|string $num2)
 
 gmp_kronecker (GMP|int|string $num1, GMP|int|string $num2)
 
 gmp_cmp (GMP|int|string $num1, GMP|int|string $num2)
 
 gmp_sign (GMP|int|string $num)
 
 gmp_random_seed (GMP|int|string $seed)
 
 gmp_random_bits (int $bits)
 
 gmp_random_range (GMP|int|string $min, GMP|int|string $max)
 
 gmp_and (GMP|int|string $num1, GMP|int|string $num2)
 
 gmp_or (GMP|int|string $num1, GMP|int|string $num2)
 
 gmp_com (GMP|int|string $num)
 
 gmp_xor (GMP|int|string $num1, GMP|int|string $num2)
 
 gmp_setbit (GMP $num, int $index, bool $value=true)
 
 gmp_clrbit (GMP $num, int $index)
 
 gmp_testbit (GMP|int|string $num, int $index)
 
 gmp_scan0 (GMP|int|string $num1, int $start)
 
 gmp_scan1 (GMP|int|string $num1, int $start)
 
 gmp_popcount (GMP|int|string $num)
 
 gmp_hamdist (GMP|int|string $num1, GMP|int|string $num2)
 
 gmp_nextprime (GMP|int|string $num)
 
 gmp_binomial (GMP|int|string $n, int $k)
 

Variables

const GMP_ROUND_ZERO = UNKNOWN
 
const GMP_ROUND_PLUSINF = UNKNOWN
 
const GMP_ROUND_MINUSINF = UNKNOWN
 
const GMP_MPIR_VERSION = UNKNOWN
 
const GMP_VERSION = UNKNOWN
 
const GMP_MSW_FIRST = UNKNOWN
 
const GMP_LSW_FIRST = UNKNOWN
 
const GMP_LITTLE_ENDIAN = UNKNOWN
 
const GMP_BIG_ENDIAN = UNKNOWN
 
const GMP_NATIVE_ENDIAN = UNKNOWN
 

Function Documentation

◆ gmp_abs()

gmp_abs ( GMP|int|string $num)

Definition at line 104 of file gmp.stub.php.

◆ gmp_add()

gmp_add ( GMP|int|string $num1,
GMP|int|string $num2 )

Definition at line 79 of file gmp.stub.php.

◆ gmp_and()

gmp_and ( GMP|int|string $num1,
GMP|int|string $num2 )

Definition at line 162 of file gmp.stub.php.

◆ gmp_binomial()

gmp_binomial ( GMP|int|string $n,
int $k )

Definition at line 186 of file gmp.stub.php.

◆ gmp_clrbit()

gmp_clrbit ( GMP $num,
int $index )

Definition at line 172 of file gmp.stub.php.

◆ gmp_cmp()

gmp_cmp ( GMP|int|string $num1,
GMP|int|string $num2 )

Definition at line 152 of file gmp.stub.php.

◆ gmp_com()

gmp_com ( GMP|int|string $num)

Definition at line 166 of file gmp.stub.php.

◆ gmp_div()

gmp_div ( GMP|int|string $num1,
GMP|int|string $num2,
int $rounding_mode = GMP_ROUND_ZERO )

@alias gmp_div_q

Definition at line 96 of file gmp.stub.php.

◆ gmp_div_q()

gmp_div_q ( GMP|int|string $num1,
GMP|int|string $num2,
int $rounding_mode = GMP_ROUND_ZERO )

Definition at line 91 of file gmp.stub.php.

◆ gmp_div_qr()

gmp_div_qr ( GMP|int|string $num1,
GMP|int|string $num2,
int $rounding_mode = GMP_ROUND_ZERO )
Returns
array<int, GMP> @refcount 1

Definition at line 89 of file gmp.stub.php.

◆ gmp_div_r()

gmp_div_r ( GMP|int|string $num1,
GMP|int|string $num2,
int $rounding_mode = GMP_ROUND_ZERO )

Definition at line 93 of file gmp.stub.php.

◆ gmp_divexact()

gmp_divexact ( GMP|int|string $num1,
GMP|int|string $num2 )

Definition at line 100 of file gmp.stub.php.

◆ gmp_export()

gmp_export ( GMP|int|string $num,
int $word_size = 1,
int $flags = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN )

Definition at line 73 of file gmp.stub.php.

◆ gmp_fact()

gmp_fact ( GMP|int|string $num)

Definition at line 106 of file gmp.stub.php.

◆ gmp_gcd()

gmp_gcd ( GMP|int|string $num1,
GMP|int|string $num2 )

Definition at line 134 of file gmp.stub.php.

◆ gmp_gcdext()

gmp_gcdext ( GMP|int|string $num1,
GMP|int|string $num2 )
Returns
array<string, GMP> @refcount 1

Definition at line 140 of file gmp.stub.php.

◆ gmp_hamdist()

gmp_hamdist ( GMP|int|string $num1,
GMP|int|string $num2 )

Definition at line 182 of file gmp.stub.php.

◆ gmp_import()

gmp_import ( string $data,
int $word_size = 1,
int $flags = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN )

Definition at line 71 of file gmp.stub.php.

◆ gmp_init()

gmp_init ( int|string $num,
int $base = 0 )

Definition at line 69 of file gmp.stub.php.

◆ gmp_intval()

gmp_intval ( GMP|int|string $num)

Definition at line 75 of file gmp.stub.php.

◆ gmp_invert()

gmp_invert ( GMP|int|string $num1,
GMP|int|string $num2 )

Definition at line 144 of file gmp.stub.php.

◆ gmp_jacobi()

gmp_jacobi ( GMP|int|string $num1,
GMP|int|string $num2 )

Definition at line 146 of file gmp.stub.php.

◆ gmp_kronecker()

gmp_kronecker ( GMP|int|string $num1,
GMP|int|string $num2 )

Definition at line 150 of file gmp.stub.php.

◆ gmp_lcm()

gmp_lcm ( GMP|int|string $num1,
GMP|int|string $num2 )

Definition at line 142 of file gmp.stub.php.

◆ gmp_legendre()

gmp_legendre ( GMP|int|string $num1,
GMP|int|string $num2 )

Definition at line 148 of file gmp.stub.php.

◆ gmp_mod()

gmp_mod ( GMP|int|string $num1,
GMP|int|string $num2 )

Definition at line 98 of file gmp.stub.php.

◆ gmp_mul()

gmp_mul ( GMP|int|string $num1,
GMP|int|string $num2 )

Definition at line 83 of file gmp.stub.php.

◆ gmp_neg()

gmp_neg ( GMP|int|string $num)

Definition at line 102 of file gmp.stub.php.

◆ gmp_nextprime()

gmp_nextprime ( GMP|int|string $num)

Definition at line 184 of file gmp.stub.php.

◆ gmp_or()

gmp_or ( GMP|int|string $num1,
GMP|int|string $num2 )

Definition at line 164 of file gmp.stub.php.

◆ gmp_perfect_power()

gmp_perfect_power ( GMP|int|string $num)

Definition at line 130 of file gmp.stub.php.

◆ gmp_perfect_square()

gmp_perfect_square ( GMP|int|string $num)

Definition at line 128 of file gmp.stub.php.

◆ gmp_popcount()

gmp_popcount ( GMP|int|string $num)

Definition at line 180 of file gmp.stub.php.

◆ gmp_pow()

gmp_pow ( GMP|int|string $num,
int $exponent )

Definition at line 124 of file gmp.stub.php.

◆ gmp_powm()

gmp_powm ( GMP|int|string $num,
GMP|int|string $exponent,
GMP|int|string $modulus )

Definition at line 126 of file gmp.stub.php.

◆ gmp_prob_prime()

gmp_prob_prime ( GMP|int|string $num,
int $repetitions = 10 )

Definition at line 132 of file gmp.stub.php.

◆ gmp_random_bits()

gmp_random_bits ( int $bits)

Definition at line 158 of file gmp.stub.php.

◆ gmp_random_range()

gmp_random_range ( GMP|int|string $min,
GMP|int|string $max )

Definition at line 160 of file gmp.stub.php.

◆ gmp_random_seed()

gmp_random_seed ( GMP|int|string $seed)

Definition at line 156 of file gmp.stub.php.

◆ gmp_root()

gmp_root ( GMP|int|string $num,
int $nth )

Definition at line 116 of file gmp.stub.php.

◆ gmp_rootrem()

gmp_rootrem ( GMP|int|string $num,
int $nth )
Returns
array<int, GMP> @refcount 1

Definition at line 122 of file gmp.stub.php.

◆ gmp_scan0()

gmp_scan0 ( GMP|int|string $num1,
int $start )

Definition at line 176 of file gmp.stub.php.

◆ gmp_scan1()

gmp_scan1 ( GMP|int|string $num1,
int $start )

Definition at line 178 of file gmp.stub.php.

◆ gmp_setbit()

gmp_setbit ( GMP $num,
int $index,
bool $value = true )

Definition at line 170 of file gmp.stub.php.

◆ gmp_sign()

gmp_sign ( GMP|int|string $num)

Definition at line 154 of file gmp.stub.php.

◆ gmp_sqrt()

gmp_sqrt ( GMP|int|string $num)

Definition at line 108 of file gmp.stub.php.

◆ gmp_sqrtrem()

gmp_sqrtrem ( GMP|int|string $num)
Returns
array<int, GMP> @refcount 1

Definition at line 114 of file gmp.stub.php.

◆ gmp_strval()

gmp_strval ( GMP|int|string $num,
int $base = 10 )

Definition at line 77 of file gmp.stub.php.

◆ gmp_sub()

gmp_sub ( GMP|int|string $num1,
GMP|int|string $num2 )

Definition at line 81 of file gmp.stub.php.

◆ gmp_testbit()

gmp_testbit ( GMP|int|string $num,
int $index )

Definition at line 174 of file gmp.stub.php.

◆ gmp_xor()

gmp_xor ( GMP|int|string $num1,
GMP|int|string $num2 )

Definition at line 168 of file gmp.stub.php.

Variable Documentation

◆ GMP_BIG_ENDIAN

const GMP_BIG_ENDIAN = UNKNOWN

Definition at line 53 of file gmp.stub.php.

◆ GMP_LITTLE_ENDIAN

const GMP_LITTLE_ENDIAN = UNKNOWN

Definition at line 48 of file gmp.stub.php.

◆ GMP_LSW_FIRST

const GMP_LSW_FIRST = UNKNOWN

Definition at line 43 of file gmp.stub.php.

◆ GMP_MPIR_VERSION

const GMP_MPIR_VERSION = UNKNOWN

Definition at line 26 of file gmp.stub.php.

◆ GMP_MSW_FIRST

const GMP_MSW_FIRST = UNKNOWN

Definition at line 38 of file gmp.stub.php.

◆ GMP_NATIVE_ENDIAN

const GMP_NATIVE_ENDIAN = UNKNOWN

Definition at line 58 of file gmp.stub.php.

◆ GMP_ROUND_MINUSINF

const GMP_ROUND_MINUSINF = UNKNOWN

Definition at line 19 of file gmp.stub.php.

◆ GMP_ROUND_PLUSINF

const GMP_ROUND_PLUSINF = UNKNOWN

Definition at line 14 of file gmp.stub.php.

◆ GMP_ROUND_ZERO

const GMP_ROUND_ZERO = UNKNOWN

Definition at line 9 of file gmp.stub.php.

◆ GMP_VERSION

const GMP_VERSION = UNKNOWN

Definition at line 32 of file gmp.stub.php.