| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
prototypes, for the benefit of Microsoft C.
|
|
|
|
|
|
|
|
| |
* scanf/doscan.c, scanf/fscanf.c, scanf/fscanffuns.c, scanf/scanf.c,
scanf/sscanf.c, scanf/sscanffuns.c, scanf/vfscanf.c, scanf/vscanf.c,
scanf/vsscanf.c, scanf/Makefile.am, tests/misc/t-scanf.c: New files.
gmp_doscan_params_t only needed in doscan.c
|
|
|
|
| |
consistency.
|
|
|
|
|
|
|
|
|
| |
redefine upsetting configure tests. Remove <iostream> since <iosfwd>
in gmp.h suffices.
The memset problem doesn't arise in normal circumstances, only when
trying something silly like CC=g++, but it does seem better to avoid
any problems if gmp-impl.h is ever used in C++ configure tests.
|
|
|
|
| |
gmp-impl.h now not required for inlined mpf.
|
| |
|
|
|
|
| |
* gmp-impl.h (RANDS): Use it.
|
| |
|
|
|
|
|
|
|
| |
scanf/sscanf.c, scanf/sscanffuns.c, scanf/vfscanf.c, scanf/vscanf.c,
scanf/vsscanf.c, scanf/Makefile.am, tests/misc/t-scanf.c: New files.
* gmp-h.in, gmp-impl.h, Makefile.am, configure.in: Consequent
additions.
|
|
|
|
|
| |
modlimb_invert_table): Add __GMP_DECLSPEC for the benefit of test
programs using them from a windows DLL.
|
|
|
|
|
|
|
| |
mpf/get_dfl_prec.c, mpf/set_dfl_prec.c, mpf/set_prc_raw.c,
mpf/set_si.c, mpf/set_ui.c, mpf/size.c: Revert mpf inlining, in order
to leave open the possibility of keeping binary compatibility if mpf
becomes mpfr.
|
|
|
|
| |
(MPN_COPY_DECR): Likewise.
|
| |
|
|
|
|
|
| |
* gmp-impl.h, mpn/asm-defs.m4, configure.in, tune/speed.c,
tune/speed.h, tune/many.pl, tests/devel/try.c: Add mpn_mod_34lsub1.
|
|
|
|
| |
tune/speed.h, tune/many.pl, tests/devel/try.c: Add mpn_mod_34lsub1.
|
|
|
|
|
|
| |
* cxx/osdoprnti.cc, gmp-impl.h: Ignore precision in operator<<.
* gmp-impl.h (modlimb_invert): More comments.
|
| |
|
|
|
|
|
| |
* tal-notreent.c: Renamed from stack-alloc.c.
* Makefile.am, acinclude.m4, gmp-impl.h: Update.
|
|
|
|
| |
* Makefile.am, acinclude.m4, gmp-impl.h: Update.
|
|
|
|
| |
classes, add std:: to prototypes.
|
| |
|
|
|
|
|
| |
* cxx/isfuns.cc: New file.
* gmp-impl.h: Add prototypes.
|
|
|
|
|
|
| |
doprnt_final_t): Use _PROTO.
For the benefit of K&R compilers.
|
|
|
|
| |
(CRAY _MPN_COPY): Delete.
|
|
|
|
|
| |
cxx/osmpf.cc, cxx/osmpq.cc, cxx/osmpz.cc: New files.
* gmp-h.in, gmp-impl.h: Prototypes and support.
|
|
|
|
|
|
|
|
|
|
|
| |
(GMP_ASPRINTF_T_INIT): New macro.
(GMP_ASPRINTF_T_NEED): New macro, adapted from vasprintf.c NEED().
* printf/vasprintf.c: Use these.
* printf/asprntffuns.c, printf/vasprintf.c, gmp-impl.h
(__gmp_asprintf_memory, __gmp_asprintf_reps, __gmp_asprintf_final):
Move to asprntffuns.c, rename to __gmp and make global, remove
spurious formal parameters from __gmp_asprintf_final.
|
| |
|
|
|
|
| |
For 64-bits reuse 0x33...33 constant.
|
|
|
|
| |
might be only 16 bits.
|
|
|
|
|
|
|
|
| |
HAVE_HOST_CPU_FAMILY_powerpc, HAVE_HOST_CPU_FAMILY_x86): AC_DEFINEs
for processor families.
* gmp-impl.h: Use them, rather than cpp defines.
* mpz/inp_str.c, gmp-impl.h (__gmpz_inp_str_nowhite): New function.
|
|
|
|
|
|
|
|
|
|
|
| |
tests/printf/Makefile.am, gmp-h.in, gmp-impl.h, gmp.texi: Remove C++
support, for the time being.
* printf/doprnt.c printf/doprntf.c, gmp-impl.h: Use a single
__gmp_doprnt_mpf, rather than a separate ndigits calculation.
* gmp-impl.h, mpf/get_str.c (MPF_SIGNIFICANT_DIGITS): New macro,
extracted from mpf/get_str.c.
|
|
|
|
| |
And amend a couple of comments.
|
| |
|
|
|
|
|
|
|
|
| |
* gmp-impl.h (mpn_fib2_ui): Use __MPN.
(MPN_COPY_DECR): Fix an ASSERT.
(CAST_TO_VOID): Remove macro.
CAST_TO_VOID was a dumb idea, everywhere else uses void unconditionally.
|
|
|
|
|
| |
__GMP_LSYM_PREFIX, revert to ASM_L in gmp-impl.h and AC_DEFINE of
LSYM_PREFIX.
|
|
|
|
| |
* gmp-impl.h (MPN_COPY_INCR, MPN_COPY_DECR, MPN_ZERO): Ditto.
|
|
|
|
| |
* gmp-impl.h (MPN_NORMALIZE): Add notes on x86 repe/scasl slow.
|
|
|
|
|
|
|
|
|
| |
__gmp_sqrt_of_negative): New functions.
* gmp-impl.h (GMP_ERROR, DIVIDE_BY_ZERO, SQRT_OF_NEGATIVE): Use them.
This should reduce code size in functions raising exceptions, and stop
them having to reference global variables thus perhaps avoiding GOT
setups for PIC etc.
|
| |
|
| |
|
|
|
|
| |
2*UMUL_TIME < UDIV_TIME.
|
|
|
|
|
|
|
| |
Corrections to these to account for adding tD into E.
(MPN_INCR_U, MPN_DECR_U) [WANT_ASSERT]: Add size
assertions, since mpn_add_1 and mpn_sub_1 from gmp.h don't get them.
(MPN_DIVREM_OR_DIVEXACT_1): Add an assert of no remainder.
|
|
|
|
| |
outputs.
|
|
|
|
| |
fits a signed byte.
|
|
|
|
|
| |
* gmp-impl.h (WANT_TMP_NOTREENTRANT): Move global parts of
stack-alloc.h to here, allow non power-of-2 __TMP_ALIGN in TMP_ALLOC.
|
|
|
|
|
| |
* configure.in, Makefile.am, gmp-impl.h: Add a debugging TMP_ALLOC,
selected with --enable-alloca=debug.
|
|
|
|
| |
* gmp-impl.h (ASM_L): Use it.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gmp-impl.h: Use it for all the malloc based TMP_ALLOCs.
* gmp-impl.h (__TMP_ALIGN): Moved from stack-alloc.c, use a union to
determine the value, and demand only 4 bytes align on 32-bit systems.
* gmp-impl.h (WANT_TMP_NOTREENTRANT): Move global parts of
stack-alloc.h to here, allow non power-of-2 __TMP_ALIGN in TMP_ALLOC.
* gmp-impl.h: Extend extern "C" to TMP_ALLOC declarations.
* gmp-impl.h (TMP_ALLOC_LIMBS_2): New macro.
|
|
|
|
|
|
|
| |
selected with --enable-alloca=debug.
Right at this moment mpfr agm.c, sqrt.c and exp.c have trouble with
this method, but gmp as such passes.
|
|
|
|
|
|
|
|
|
|
|
| |
(mpn_incr_u, mpn_decr_u): Recognise incr==1 at compile time in the
generic code on gcc.
If gcc was extremely smart it could detect that incr==1 ends up with
pretty much the same chunk of code before and within the mpn_incr_u
loop, and merge them itself, but I guess one wouldn't want it wasting
time looking for such unlikely optimizations. Give it a helping hand
instead.
|