4 ms·
GMP doesn't do arbitrary exponents.
by Archit3ch 2y ago
GMP doesn't do arbitrary exponents.
- amelius 2y agoIndeed, thanks.
- Archit3ch 2y agoSlight correction, while the exponent is indeed fixed, it is larger than a f32/f64 exponent: https://gmplib.org/manual/Floating_002dpoint-Functions https://gmplib.org/manual/Floating_002dpoint-Functions However, this is not exposed in all GMP wrappers.
- seg_fault 2y agoIf I understand this correctly GMP has a flexible mantissa with no limitations during runtime. In fas you have to specify the sizes (of mantissa and exponent) during compile time. So the size of this type is fixed. Thus, there is no heap involved.