C ++ bignum compilation library

Is there any compile-time library (template metaprogramming) for arbitrary precision arithmetic in C ++?

I need this to help with fixed point arithmetic and binary scaling in my AVR microcontroller program. For example, when two numbers are multiplied, each with their own boundaries, binums will be used to calculate the boundaries of the result and, if necessary, move the split point to the inputs and / or outputs. But result boundaries cannot be represented in standard integer types.

+7
source share
1 answer

Perhaps Boost.Multiprecision is what you are looking for.

+1
source

All Articles