Efficiently importing/export GMP floats

Patrick Pelissier patrick.pelissier at gmail.com
Wed Jan 19 19:16:30 CET 2011


> It might therefore make sense to update to a coherent format for GMP and
> MPFR, using function names not to be confused with mpz_out_raw/mpz_inp_raw.
>
> * The format should by byte-oriented, not 32-bit oriented.

 Why do you prefer the format to be byte-oriented?
 To consume less space?
 Won't it make some compatibility problems across systems where a char is 8 bits
 and systems where a char is 16 bits (or 32 bits)?

> * "Network byte order" should be used, i.e., most significant byte first.

 Do you have a practical example of why it is better?

--
 Sincerely,
  Patrick Pélissier


More information about the gmp-discuss mailing list