Skip to content
This repository has been archived by the owner on Apr 20, 2019. It is now read-only.
/ BigCub Public archive

Bignum library in C++, for educational purposes only

License

Notifications You must be signed in to change notification settings

Cubox/BigCub

Repository files navigation

BigCub

This is a Bignum library, in C++.

Almost every arithmetic and logic operators are overloaded on the BigCub class. The only missing operation is the division.

Probably missing some logic operators. vOv

How to build it?

You need Tup installed. You need clang, with C++14 support.

$ $(package manager) install tup
$ tup init
$ tup
$ ./tests

Why? How?

The reason behind this code was to have fun, learn how to do bignum operations and how it all worked. My choice of storing numbers in a vector is a bad idea for a serious lib, but it made me do a lot of paper binary operations!

Performances are not that bad, for a basic recurring fibonacci function, using BigCub will take only 3 times as libgmp does!

About

Bignum library in C++, for educational purposes only

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages