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.
Ambroz Bizjak
source share