I am working on a project where I need to crunch large integers (e.g. 3 ^ 361) with absolute accuracy and maximum speed. C is the fastest language I am familiar with, so I'm trying to code my solution in that language.
The problem is that I could not find a good implementation of any data types to represent unlimited integers in C other than the Python source code. It takes me a while to go through the code and determine what I need.
I would rather use someone else's verified code with a full set of functions (addition, subtraction, multiplication, division, modulation, exponentiality, equality checking ... even a bitwise operation would be sweet) than spend the weeks that I need, I even started getting its version to face value. Although this would be a great learning experience, this is not the main focus of my problem, and I would prefer to get the part that interests me :)
c integer
sadakatsu
source share