libbig_int is a portable C library to calculate integers and bitsets of arbitrary length. The sources were taken from the big_int PHP library by Alexander Valyalkin.
To build and install libbig_int, simply run:
mkdir build
cd build/
cmake ..
make
make install
Examples using libbig_int: