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

File: [local] / OpenXM_contrib / gmp / mpf / Attic / README (download)

Revision 1.1.1.1 (vendor branch), Sat Sep 9 14:13:07 2000 UTC (23 years, 8 months ago) by maekawa
Branch: GMP
CVS Tags: maekawa-ipv6, VERSION_3_1_1, VERSION_3_1, RELEASE_1_2_2, RELEASE_1_2_1, RELEASE_1_1_3
Changes since 1.1: +0 -0 lines

Import gmp 3.1

This directory contains functions for GMP's floating-point function layer.

In this version of GMP, floating-point numbers are represented like in the
figure below.  (Please note that the format might change between every
version, and that depending on the internal format in any way is a bad idea.)

   most				least
significant		     significant
   limb				limb

				 _mp_d
				  /
				 /
				\/
	<-- _mp_exp -->
	 ____ ____ ____ ____ ____
	|____|____|____|____|____|
		       . <------------- radix point

	<------- _mp_size ------->


The most significant limb will be non-zero.  The _mp_exp field is the distance
in number of limbs from the radix point to the most significant limb; it will
be positive iff the absolute value of the number is >= 1.  The _mp_size
field's sign reflects the sign of the number.  Its absolute value is the count
of limbs in the number.