The multiple-precision arithmetic is implemented in the mp.hpp
header and does not need
to be compiled separately. The unit test depends the Boost unit testing framework; the
other programs have no special dependencies. To install Boost, run brew install boost
on macOS or sudo apt-get install libboost-dev
on Debian, Ubuntu, or derivatives. To build
the unit tests on GNU/Linux or macOS, run g++ mp_test.cpp -o test && ./test --log_level=all
(or run the included binary for macOS: ./test --log_level=all
). factorial
and fibonacci
can be built in the same way: g++ fibonacci.cpp -o fibonacci && ./fibonacci
or
g++ factorial.cpp -o factorial && ./factorial
, respectively. Again, binaries are included
for macOS. To run expmod, run python expmod.py [a] [b] [n]
.
-
Notifications
You must be signed in to change notification settings - Fork 0
AlexanderVatov/mp
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Amateur implementation of multiple precision integers
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published