mini-gmp mpz_{get,set}_d not fully compatible with GMP

Marc Glisse marc.glisse at inria.fr
Sat Mar 17 05:55:21 UTC 2018


On Sat, 17 Mar 2018, Vincent Lefevre wrote:

> On 2018-03-16 22:22:39 +0100, Marc Glisse wrote:
>> On Fri, 16 Mar 2018, Marco Bodrato wrote:
>>
>>> float.h was defined by C99, right?
>>
>> I am pretty sure it was already in C89.
>
> Yes, but was DBL_MANT_DIG necessarily an integer constant expression
> (in case this is needed) at that time?

Indeed it wasn't (only FLT_RADIX was), but I would be surprised if 
implementations made it non-constant, and we probably don't need to use it 
as a constant anyway.

-- 
Marc Glisse


More information about the gmp-devel mailing list