long doubles
Daniel J Farrell
daniel.farrell at imperial.ac.uk
Wed Feb 8 10:53:16 CET 2006
Hi Damien,
Maybe because long double is hardware specific? i.e. some time is 12
bytes long other times its 16. Also, different manufactures divide
the number of bytes up differently between exponent and the number
part of the floating point.
All of that's just a guess, by they way.
Daniel.
On 8 Feb 2006, at 06:19, Damien Stehle wrote:
> Hello,
>
> I wonder why GMP it is not possible to perform conversions between
> mpz_ts and long doubles. More precisely, why are the following
> functions unavailable?
> mpz_get_ld
> mpz_set_ld
> Their task (and possibly their code) would be to copy those of
> mpz_set_d and mpz_get_d.
>
> Besides, why does mpz_set_d rounds towards zero and not to the nearest
> (with the round to even rule)?
>
> Regards,
> Damien
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at swox.com
> https://gmplib.org/mailman/listinfo/gmp-discuss
More information about the gmp-discuss
mailing list