| 1 | <?php |
||
| 7 | final class NumberSize |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Returns the number of bits used to store this number. Non-singicant upper bits are not counted. |
||
| 11 | * |
||
| 12 | * @param GmpMath $adapter |
||
| 13 | * @param \GMP $x |
||
| 14 | * @return number |
||
| 15 | * |
||
| 16 | * @link https://www.openssl.org/docs/crypto/BN_num_bytes.html |
||
| 17 | */ |
||
| 18 | public static function bnNumBits(GmpMath $adapter, \GMP $x) |
||
| 33 | } |
||
| 34 |