stk/Mp/gmp-1.3.2
Erick Gallesio 831a9f5c47 Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
..
tests Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
COPYING Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
ChangeLog Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
INSTALL Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
Makefile Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
README Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
TODO Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
VERSION Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
_mpz_get_str.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
_mpz_set_str.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
alloca.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
cre-conv-tab.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
cre-mparam.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
cre-stddefh.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
gmp-impl.h Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
gmp.h Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
gmp.texi Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
itom.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
longlong.h Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mdiv.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
memory.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mfree.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
min.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mout.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
move.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mp.h Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mp_clz_tab.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mp_set_fns.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpn_add.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpn_cmp.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpn_div.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpn_dm_1.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpn_lshift.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpn_mod_1.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpn_mul.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpn_rshift.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpn_rshiftci.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpn_sqrt.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpn_sub.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpq_add.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpq_clear.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpq_cmp.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpq_div.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpq_get_den.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpq_get_num.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpq_init.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpq_inv.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpq_mul.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpq_neg.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpq_set.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpq_set_den.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpq_set_num.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpq_set_si.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpq_set_ui.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpq_sub.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_abs.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_add.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_add_ui.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_and.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_clear.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_clrbit.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_cmp.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_cmp_si.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_cmp_ui.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_com.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_div.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_div_2exp.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_div_ui.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_dm.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_dm_ui.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_dmincl.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_fac_ui.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_gcd.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_gcdext.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_get_si.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_get_str.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_get_ui.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_init.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_inp_raw.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_inp_str.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_ior.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_iset.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_iset_si.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_iset_str.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_iset_ui.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_mdiv.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_mdiv_ui.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_mdm.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_mdm_ui.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_mmod.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_mmod_ui.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_mod.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_mod_2exp.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_mod_ui.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_mul.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_mul_2exp.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_mul_ui.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_neg.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_out_raw.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_out_str.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_perfsqr.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_pow_ui.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_powm.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_powm_ui.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_pprime_p.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_random.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_random2.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_realloc.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_set.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_set_si.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_set_str.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_set_ui.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_size.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_sizeinb.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_sqrt.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_sqrtrem.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_sub.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mpz_sub_ui.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
mtox.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
sdiv.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00
xtom.c Commit of 3.1.1 version 2019-10-31 11:29:02 +01:00

README

			THE GNU MP LIBRARY


GNU MP is a library for arbitrary precision arithmetic, operating on
signed integers and rational numbers.  It has a rich set of functions,
and the functions have a regular interface.

I have tried to make these functions as fast as possible, both for small
operands and for huge operands.  The speed is achieved by using fullwords
as the basic arithmetic type, by using fast algorithms, by defining inline
assembler for mixed sized multiplication and division (i.e 32*32->64 bit
multiplication and 64/32->32,32 bit division), and by hacking the code
with emphasis on speed (and not simplicity and elegance).

The speed of GNU MP is about 5 to 100 times that of Berkeley MP for
small operands.  The speed-up increases with the operand sizes for
certain operations, for which GNU MP has asymptotically faster algorithms.


There are four classes of functions in GNU MP.

 1. Signed integer arithmetic functions, mpz_*.  The set of functions are
    intended to be easy to use, being rich and regular.

    To use these functions, include the file "gmp.h".

 2. Rational arithmetic functions, mpq_*.  For now, just a small set of
    functions necessary for basic rational arithmetics.

    To use these functions, include the file "gmp.h".

 3. Positive-integer, low-level, harder-to-use, but for small operands
    about twice as fast than the mpz_* functions are the functions in the
    mpn_* class.  No memory management is performed.  The caller must
    ensure enough space is available for the results.  The set of
    functions is not quite regular, nor is the calling interface.  These
    functions accept input arguments in the form of pairs consisting of a
    pointer to the least significant word, and a integral size telling how
    many limbs (= words) the pointer points to.

    Almost all calculations, in the entire package, are made in these
    low-level functions.

    These functions are not fully documented in this release.  They will
    probably be so in a future release.

 4. Berkeley MP compatible functions.

    To use these functions, include the file "mp.h".  You can test if you
    are using the GNU version by testing if the symbol __GNU_MP__ is
    defined.


			REPORTING BUGS

If you find a bug in the library, please make sure to tell us about it!

You can report bugs, and propose modifications and enhancements to
tege@gnu.ai.mit.edu.  How to report a bug is further described in
the texinfo documentation, see the file gmp.texi.