[BACK]Return to README CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gmp / mpf

Annotation of OpenXM_contrib/gmp/mpf/README, Revision 1.1.1.1

1.1       maekawa     1: This directory contains functions for GMP's floating-point function layer.
                      2:
                      3: In this version of GMP, floating-point numbers are represented like in the
                      4: figure below.  (Please note that the format might change between every
                      5: version, and that depending on the internal format in any way is a bad idea.)
                      6:
                      7:    most                                least
                      8: significant                 significant
                      9:    limb                                limb
                     10:
                     11:                                 _mp_d
                     12:                                  /
                     13:                                 /
                     14:                                \/
                     15:        <-- _mp_exp -->
                     16:         ____ ____ ____ ____ ____
                     17:        |____|____|____|____|____|
                     18:                       . <------------- radix point
                     19:
                     20:        <------- _mp_size ------->
                     21:
                     22:
                     23: The most significant limb will be non-zero.  The _mp_exp field is the distance
                     24: in number of limbs from the radix point to the most significant limb; it will
                     25: be positive iff the absolute value of the number is >= 1.  The _mp_size
                     26: field's sign reflects the sign of the number.  Its absolute value is the count
                     27: of limbs in the number.

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>