|
openGPMP
Open Source Mathematics Package
|
Arithmetic Operations More...
#include <arithmetic.hpp>
Public Member Functions | |
| int64_t | greatest_power (int64_t n, int64_t p) |
| Find greatest power of 2 itegers. More... | |
| int64_t | op_gcd (int64_t x, int64_t y) |
| Find Greatest Common Divisor of 2 integers. More... | |
Arithmetic Operations
Encompasses Arithmetic related operations
Definition at line 101 of file arithmetic.hpp.
| int64_t gpmp::Basics::greatest_power | ( | int64_t | n, |
| int64_t | p | ||
| ) |
Find greatest power of 2 itegers.
| [in] | n | : integer 1 |
| [in] | p | : integer 2 |
Definition at line 39 of file arith.cpp.
Referenced by main().
| int64_t gpmp::Basics::op_gcd | ( | int64_t | x, |
| int64_t | y | ||
| ) |
Find Greatest Common Divisor of 2 integers.
| [in] | x | : integer 1 |
| [in] | y | : integer 2 |
Definition at line 50 of file arith.cpp.
Referenced by gpmp::PrimalityTest::carmichael_num(), gpmp::PrimalityTest::ETF(), and main().