Efficiently importing/export GMP floats

Vincent Lefevre vincent at vinc17.net
Thu Jan 20 13:32:36 CET 2011


On 2011-01-19 20:13:05 +0100, Torbjorn Granlund wrote:
>   > * "Network byte order" should be used, i.e., most significant byte first.
>   
>    Do you have a practical example of why it is better?
>   
> It is not "better" in a way that allows one to produce an example.  It
> is the standard external byte order since epoch.  Of course, standards
> are ust standards, so if there are good reasons, one may choose to
> deviate from them.

Well, what you call the "most significant byte" depends on the
topology. :) If an integer is seen as an element of Z_2, you may
want to consider a different byte order.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)


More information about the gmp-discuss mailing list