A arbitrary precision integer C++ library.
Support construct from int, max signed type, std::string, C-style null-terminated string
Have almost all operation that native integer type has.
Arithmatic: Addition, Substraction, Multiplication, Division, Modulo.
Logic: Shift, Not, And, Or, Xor. All logic operations resemble 2's complement logic operation.
No increment decrement and assign operator yet.
Very limited or none optimization for algorithms. All operation use basic algorithm.
without test: cmake . -Bbuild && cmake --build build
with test:
- Execute
git submodule update --init
- Then
cmake . -DBIGINTEGER_TEST=on -Bbuild && cmake --build build
- Then change to
build
and runctest