
Public Member Functions | |
| add (BigInteger $x) | |
| |
| compareTo (BigInteger $x) | |
| mod (BigInteger $mod) | |
| |
| pow (BigInteger $exp) | |
| |
| modPow (BigInteger $exp, BigInteger $mod) | |
| |
| subtract (BigInteger $x) | |
| |
| mul (BigInteger $x) | |
| |
| div (BigInteger $x) | |
| |
| toString () | |
| toBinary () | |
| convert to big-endian signed two's complement notation | |
| intValue () | |
| floatValue () | |
Static Public Member Functions | |
| static | make ($number, $base=10) |
| |
| static | getFactory () |
| |
| static | makeFromBinary ($binary) |
| |
Private Attributes | |
| $resource = null | |
Definition at line 16 of file GmpBigInteger.class.php.
| static GmpBigInteger::make | ( | $ | number, | |
| $ | base = 10 | |||
| ) | [static] |
Definition at line 23 of file GmpBigInteger.class.php.
References Assert::isTrue().
Referenced by makeFromBinary(), and GmpBigIntegerFactory::makeNumber().

| static GmpBigInteger::getFactory | ( | ) | [static] |
Implements BigInteger.
Definition at line 36 of file GmpBigInteger.class.php.
References GmpBigIntegerFactory::me().

| static GmpBigInteger::makeFromBinary | ( | $ | binary | ) | [static] |
Definition at line 44 of file GmpBigInteger.class.php.
Referenced by GmpBigIntegerFactory::makeFromBinary().

| GmpBigInteger::add | ( | BigInteger $ | x | ) |
| GmpBigInteger::compareTo | ( | BigInteger $ | x | ) |
| GmpBigInteger::mod | ( | BigInteger $ | mod | ) |
| GmpBigInteger::pow | ( | BigInteger $ | exp | ) |
Implements BigInteger.
Definition at line 103 of file GmpBigInteger.class.php.
References intValue().
Referenced by floatValue().

| GmpBigInteger::modPow | ( | BigInteger $ | exp, | |
| BigInteger $ | mod | |||
| ) |
Implements BigInteger.
Definition at line 113 of file GmpBigInteger.class.php.
| GmpBigInteger::subtract | ( | BigInteger $ | x | ) |
Implements BigInteger.
Definition at line 127 of file GmpBigInteger.class.php.
| GmpBigInteger::mul | ( | BigInteger $ | x | ) |
Implements BigInteger.
Definition at line 137 of file GmpBigInteger.class.php.
Referenced by makeFromBinary().
| GmpBigInteger::div | ( | BigInteger $ | x | ) |
Implements BigInteger.
Definition at line 147 of file GmpBigInteger.class.php.
| GmpBigInteger::toString | ( | ) |
| GmpBigInteger::toBinary | ( | ) |
convert to big-endian signed two's complement notation
Implements BigInteger.
Definition at line 159 of file GmpBigInteger.class.php.
| GmpBigInteger::intValue | ( | ) |
| GmpBigInteger::floatValue | ( | ) |
Implements BigInteger.
Definition at line 200 of file GmpBigInteger.class.php.
References pow().

GmpBigInteger::$resource = null [private] |
Definition at line 18 of file GmpBigInteger.class.php.
1.5.4