gmp_abs | PHP 4.0.4 |
resource gmp_abs(resource a) |
|
Calculates absolute value. |
gmp_add | PHP 4.0.4 |
resource gmp_add(resource a, resource b) |
|
Adds a and b. |
gmp_and | PHP 4.0.4 |
resource gmp_and(resource a, resource b) |
|
Calculates logical AND of a and b. |
gmp_clrbit | PHP 4.0.4 |
void gmp_clrbit(resource &a, int index) |
|
Clears bit in a. |
gmp_cmp | PHP 4.0.4 |
int gmp_cmp(resource a, resource b) |
|
Compares two numbers. |
gmp_com | PHP 4.0.4 |
resource gmp_com(resource a) |
|
Calculates one's complement of a. |
gmp_div_q | PHP 4.0.4 |
resource gmp_div_q(resource a, resource b[, int round]) |
|
Divides a by b , returns quotient only. |
gmp_div_qr | PHP 4.0.4 |
array gmp_div_qr(resource a, resource b[, int round]) |
|
Divides a by b , returns quotient and remainder. |
gmp_div_r | PHP 4.0.4 |
resource gmp_div_r(resource a, resource b[, int round]) |
|
Divides a by b , returns remainder only. |
gmp_divexact | PHP 4.0.4 |
resource gmp_divexact(resource a, resource b) |
|
Divides a by b using exact division algorithm. |
gmp_fact | PHP 4.0.4 |
resource gmp_fact(int a) |
|
Calculates factorial function. |
gmp_gcd | PHP 4.0.4 |
resource gmp_gcd(resource a, resource b) |
|
Computes greatest common denominator (GCD) of a and b. |
gmp_gcdext | PHP 4.0.4 |
array gmp_gcdext(resource a, resource b) |
|
Computes G, S, and T, such that AS + BT = G, where G is the GCD of a and b. |
gmp_hamdist | PHP 4.0.4 |
int gmp_hamdist(resource a, resource b) |
|
Calculates hamming distance between a and b. |
gmp_init | PHP 4.0.4 |
resource gmp_init(mixed number[, int base]) |
|
Initializes GMP number. |
gmp_intval | PHP 4.0.4 |
int gmp_intval(resource gmpnumber) |
|
Gets signed long value of GMP number. |
gmp_invert | PHP 4.0.4 |
resource gmp_invert(resource a, resource b) |
|
Computes the inverse of a modulo b. |
gmp_jacobi | PHP 4.0.4 |
int gmp_jacobi(resource a, resource b) |
|
Computes Jacobi symbol. |
gmp_legendre | PHP 4.0.4 |
int gmp_legendre(resource a, resource b) |
|
Computes Legendre symbol. |
gmp_mod | PHP 4.0.4 |
resource gmp_mod(resource a, resource b) |
|
Computes a modulo b. |
gmp_mul | PHP 4.0.4 |
resource gmp_mul(resource a, resource b) |
|
Multiplies a and b. |
gmp_neg | PHP 4.0.4 |
resource gmp_neg(resource a) |
|
Negates a number. |
gmp_or | PHP 4.0.4 |
resource gmp_or(resource a, resource b) |
|
Calculates logical OR of a and b. |
gmp_perfect_square | PHP 4.0.4 |
bool gmp_perfect_square(resource a) |
|
Checks if a is an exact square. |
gmp_popcount | PHP 4.0.4 |
int gmp_popcount(resource a) |
|
Calculates the population count of a. |
gmp_pow | PHP 4.0.4 |
resource gmp_pow(resource base, int exp) |
|
Raises base to power exp. |
gmp_powm | PHP 4.0.4 |
resource gmp_powm(resource base, resource exp, resource mod) |
|
Raises base to power exp and takes result modulo mod. |
gmp_prob_prime | PHP 4.0.4 |
int gmp_prob_prime(resource a[, int reps]) |
|
Checks if a is "probably prime". |
gmp_random | PHP 4.0.4 |
resource gmp_random([int limiter]) |
|
Gets random number. |
gmp_scan0 | PHP 4.0.4 |
int gmp_scan0(resource a, int start) |
|
Finds first zero bit. |
gmp_scan1 | PHP 4.0.4 |
int gmp_scan1(resource a, int start) |
|
Finds first nonzero bit. |
gmp_setbit | PHP 4.0.4 |
void gmp_setbit(resource &a, int index[, bool set_clear]) |
|
Sets or clears bit in a. |
gmp_sign | PHP 4.0.4 |
int gmp_sign(resource a) |
|
Gets the sign of the number. |
gmp_sqrt | PHP 4.0.4 |
resource gmp_sqrt(resource a) |
|
Takes integer part of square root of a. |
gmp_sqrtrem | PHP 4.0.4 |
array gmp_sqrtrem(resource a) |
|
Takes square root with remainder. |
gmp_strval | PHP 4.0.4 |
string gmp_strval(resource gmpnumber[, int base]) |
|
Gets string representation of GMP number. |
gmp_sub | PHP 4.0.4 |
resource gmp_sub(resource a, resource b) |
|
Subtracts b from a. |
gmp_xor | PHP 4.0.4 |
resource gmp_xor(resource a, resource b) |
|
Calculates logical exclusive OR of a and b. |