summaryrefslogtreecommitdiff
path: root/gmp-impl.h
Commit message (Collapse)AuthorAgeFilesLines
* (powerpc BSWAP_LIMB_FETCH): Rename local variable to maketege2002-05-081-3/+3
| | | | it not clash with caller.
* (mpn_rootrem): Add declaration.tege2002-05-081-0/+3
|
* * gmp-impl.h (MUL_KARATSUBA_THRESHOLD etc): Remove forced nail values.Kevin Ryde2002-05-081-12/+0
|
* (MPZ_REALLOC): Rewrite to allow the use of _mpz_realloc return value.tege2002-05-071-5/+1
|
* Rename MP_LIMB_T_HIGHBIT => GMP_LIMB_HIGHBITtege2002-05-071-1/+1
|
* * gmp-h.in, gmp-impl.h (GMP_NUMB_MAX): Move to gmp.h.Kevin Ryde2002-05-071-17/+78
| | | | | | | | | * gmp-impl.h (CNST_LIMB): Add cast to mp_limb_t to ensure unsigned. (CRAY_Pragma, MPN_REVERSE, MPN_BSWAP, MPN_BSWAP_REVERSE, ASSERT_ALWAYS_LIMB, ASSERT_ALWAYS_MPN): New macros. (MPZ_CHECK_FORMAT): Use ASSERT_ALWAYS_MPN. This CNST_LIMB change fixes some ASSERTs in mpn_sqrtrem.
* (__GMPF_BITS_TO_PREC, __GMPF_PREC_TO_BITS): Nailify.tege2002-05-061-4/+3
|
* * gmp-impl.h (JACOBI_MOD_OR_MODEXACT_1_ODD): Allow for oddKevin Ryde2002-05-011-2/+12
| | | | GMP_NUMB_BITS.
* (LIMBS_PER_DOUBLE, MP_BASE_AS_DOUBLE): Nailify.tege2002-04-301-3/+3
|
* (modlimb_invert): Nailify.tege2002-04-291-19/+19
|
* * gmp-impl.h (NEG_MOD): Nailify.Kevin Ryde2002-04-231-0/+6
|
* * gmp-impl.h, mpn/mp_bases.c: Add back GMP_NUMB_BITS==30 bases data.Kevin Ryde2002-04-231-0/+6
|
* (mpn_com_n): Nailify.tege2002-04-221-1/+1
|
* * gmp-impl.h [nails]: Add #undefs of MUL_KARATSUBA_THRESHOLD etc, toKevin Ryde2002-04-201-1/+28
| | | | | override CPU gmp-mparam.h. Remove JACOBI_BASE_METHOD override since it's nails-neutral.
* * gmp-impl.h (MP_BASES_BIG_BASE_INVERTED_10,Kevin Ryde2002-04-201-12/+6
| | | | | MP_BASES_NORMALIZATION_STEPS_10): Fix nails values. (MP_BASES_*): Remove GMP_NUMB_BITS == 30 data.
* (nail DIV_DC_THRESHOLD): Decrease to 50 to allow fast division.tege2002-04-171-1/+1
|
* (mp_bases[10] values): Add versions for GMP_NUMB_BITS being 28, 60, and 63.tege2002-04-161-4/+22
|
* * gmp-h.in, gmp-impl.h (GMP_NAIL_MASK): Move to gmp.h.Kevin Ryde2002-04-161-2/+0
|
* * gmp-impl.h (SUBC_LIMB): New macro.Kevin Ryde2002-04-161-0/+21
|
* * gmp-impl.h (MPN_FIB2_SIZE): Nailify.Kevin Ryde2002-04-161-8/+11
| | | | (PP): Nailify conditionals.
* Set various *_THRESHOLD values to be used for nails totege2002-04-151-1/+49
| | | | | avoid not yet qualified algorithms. (MPZ_CHECK_FORMAT): Check that nail part is zero.
* (MODLIMB_INVERSE_3): Nailify.tege2002-04-111-1/+1
|
* (GMP_NUMB_MASK): Comment out, now in gmp.h.tege2002-04-101-8/+7
| | | | | (mpn_incr_u): Don't assume `incr' is non-zero. (mpn_decr_u): Similarly.
* Replace nail mpn_incr_u, mpn_decr_u with faster versions.tege2002-04-051-79/+85
| | | | | | (mp_bases[10] values): Check GMP_NUMB_BITS instead of BITS_PER_MP_LIMB. Add GMP_NUMB_BITS == 30 version. (__gmp_doprnt, etc): Remove parameter names.
* Better effort for:Kevin Ryde2002-04-041-13/+17
| | | | | * gmp-impl.h (BSWAP_LIMB_FETCH, BSWAP_LIMB_STORE) [powerpc]: Corrections to constraints,
* * gmp-impl.h (BSWAP_LIMB_FETCH, BSWAP_LIMB_STORE) [powerpc]:Kevin Ryde2002-04-021-14/+17
| | | | Corrections to constraints, and restrict to bigendian.
* Another correction to:Kevin Ryde2002-03-311-2/+2
| | | | | * gmp-impl.h (MPN_IORD_U) [x86]: Eliminate unnecessary jiord and iord, rename "n" to incr per generic versions, restrict to nails==0.
* Correction to:Kevin Ryde2002-03-311-2/+2
| | | | | * gmp-impl.h (MPN_IORD_U) [x86]: Eliminate unnecessary jiord and iord, rename "n" to incr per generic versions, restrict to nails==0.
* * gmp-impl.h (MPN_IORD_U) [x86]: Eliminate unnecessary jiord and iord,Kevin Ryde2002-03-311-39/+109
| | | | | | | | | rename "n" to incr per generic versions, restrict to nails==0. (mpn_incr_u, mpn_decr_u): Add nails support. (GMP_NAIL_LOWBIT, GMP_NUMB_MAX): New macros. * gmp-impl.h, tests/refmpn.c (ASSERT_LIMB): Renamed from ASSERT_MP_LIMB_T.
* Restrict powerpc stuff to 32-bits:Kevin Ryde2002-03-281-9/+10
| | | | | | * gmp-impl.h (BSWAP_LIMB_FETCH, BSWAP_LIMB_STORE): New macros. And more comments on modlimbs_invert.
* * gmp-impl.h (BSWAP_LIMB_FETCH, BSWAP_LIMB_STORE): New macros.Kevin Ryde2002-03-241-0/+42
|
* * gmp-impl.h (mp_bases): Add __GMP_DECLSPEC, for the benefit ofKevin Ryde2002-03-201-1/+1
| | | | tests/t-constants.c.
* * gmp-impl.h: Add __GMP_DECLSPEC to libgmp functions used by libgmpxx.Kevin Ryde2002-03-021-17/+7
|
* * gmp-impl.h (MPN_SIZEINBASE, MPN_SIZEINBASE_16): Correction toKevin Ryde2002-03-021-2/+2
| | | | __totbits for nails.
* * gmp-impl.h (JACOBI_LS0): Test size before limb, to pacify valgrind.Kevin Ryde2002-03-021-2/+2
| | | | (JACOBI_0LS): Ditto, and fix parens around arguments.
* * gmp-impl.h (va_copy): Fall back on memcpy, not "=".Kevin Ryde2002-02-271-4/+5
|
* Clean up *_THRESHOLD names.tege2002-02-191-75/+75
|
* (__mp_bases): Remove superflous `mp_' part of name, makingtege2002-02-101-9/+10
| | | | | it __gmpn_bases instead of __gmpn_mp_bases. (mp_bases): New #define.
* * gmp-impl.h (MPN_SIZEINBASE, MPN_SIZEINBASE_16): New macros fromKevin Ryde2002-02-081-13/+57
| | | | | | mpn_sizeinbase, and use GMP_NUMB_BITS. * gmp-impl.h (MPN_GET_STR_SIZE): Remove.
* * tune/tuneup.c, gmp-impl.h, tune/Makefile.amKevin Ryde2002-02-021-0/+7
| | | | (GET_STR_BASECASE_THRESHOLD, GET_STR_PRECOMPUTE_THRESHOLD): Tune these.
* * gmp-impl.h (GMP_NUMB_MASK, GMP_NAIL_MASK, GMP_NUMB_HIGHBIT,Kevin Ryde2002-01-301-23/+49
| | | | | | | | | | ASSERT_MPN, ASSERT_MP_LIMB_T): New macros. * mpn/generic/fib2_ui.c: Use GMP_NUMB_BITS, simplify the data generator program, share __gmp_fib_table initializers between bit sizes, cope with bit sizes other than those specifically setup. * gmp-impl.h (FIB_TABLE_LIMIT, FIB_TABLE_LUCNUM_LIMIT): Corresponding rearrangement of conditionals.
* * mpn/generic/sizeinbase.c: New file, adapted from mpz/sizeinbase.c.Kevin Ryde2002-01-231-0/+3
| | | | | Use POW2_P, use __mp_bases[base].big_base for log2(base). * gmp-impl.h: Add prototype.
* * gmp-impl.h (__GMP_REALLOCATE_FUNC_MAYBE_TYPE): New macro.Kevin Ryde2002-01-171-1/+9
| | | | * gmp-impl.h: Some fixes to compile as C++.
* * gmp-impl.h (MPN_COPY_INCR, MPN_COPY_DECR): Remove __i, unused.Kevin Ryde2002-01-161-2/+0
|
* * gmp-impl.h (USE_PREINV_DIVREM_1, USE_PREINV_MOD_1): Ditto.Kevin Ryde2002-01-141-59/+22
| | | | | | | | | | (DIVEXACT_1_THRESHOLD, MODEXACT_1_ODD_THRESHOLD): Don't use UMUL_TIME and UDIV_TIME, make default thresholds 0. (UDIV_NORM_PREINV_TIME, UDIV_UNNORM_PREINV_TIME): Remove macros. * tests/mpz/t-inp_str.c, tests/mpq/t-inp_str.c, tests/misc/t-scanf.c: Avoid strings in ASSERT, not enjoyed by K&R. * gmp-impl.h (ASSERT): Note this.
* * gmp-h.in, gmp-impl.h (mpn_add_nc, mpn_addmul_1c, mpn_addsub_n,Kevin Ryde2002-01-111-3/+43
| | | | | | | | mpn_addsub_nc, mpn_divrem_1c, mpn_dump, mpn_mod_1c, mpn_mul_1c, mpn_mul_basecase, mpn_sqr_n, mpn_sqr_basecase, mpn_sub_nc, mpn_submul_1c): Move to gmp-impl.h, since they're undocumented. * gmp-impl.h (mpn_reciprocal): Remove, unused.
* * gmp-impl.h (MPN_GET_STR_SIZE): New macro.Kevin Ryde2002-01-071-0/+12
|
* * gmp-impl.h (POW2_P): New macro.Kevin Ryde2002-01-071-0/+5
|
* * gmp-impl.h (ASSERT_CODE): New macro.Kevin Ryde2002-01-071-0/+9
|
* (MPN_COPY_INCR, MPN_COPY_DECR): Rewrite generic versions.tege2002-01-071-13/+45
|