| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
prototypes, for the benefit of Microsoft C.
|
| |
|
| |
|
|
|
|
| |
* gmp-h.in: Add prototypes.
|
|
|
|
| |
gmp-impl.h now not required for inlined mpf.
|
|
|
|
| |
prototypes.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
application namespace.
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
This is necessary for Cray C++, and perhaps others.
|
|
|
|
| |
classes, add std:: to prototypes.
|
|
|
|
|
| |
* cxx/ismpf.cc, cxx/ismpq.cc, cxx/ismpz.cc: New files.
* gmp-h.in: Add prototypes.
|
|
|
|
|
|
| |
* cxx/Makefile.am, cxx/Makefile.in, cxx/osdoprnti.cc, cxx/osfuns.cc,
cxx/osmpf.cc, cxx/osmpq.cc, cxx/osmpz.cc: New files.
* gmp-h.in, gmp-impl.h: Prototypes and support.
|
|
|
|
|
| |
cxx/osmpf.cc, cxx/osmpq.cc, cxx/osmpz.cc: New files.
* gmp-h.in, gmp-impl.h: Prototypes and support.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Postpone zeroing of (cout).
(__GMPN_ADD_1, __GMPN_SUB_1): Corresponding changes.
|
|
|
|
|
|
| |
__GMP_HAVE_HOST_CPU_FAMILY_powerpc): New AC_SUBSTs.
* gmp-h.in (__GMPN_COPY_INCR): Use them to select the power/powerpc
code, rather than preprocessor defines.
|
|
|
|
|
|
| |
* gmp-h.in (__GMP_EXTERN_INLINE): Add a definition for SCO 8 cc.
Need "static inline", not "extern inline".
|
| |
|
| |
|
|
|
|
| |
as the string.
|
|
|
|
|
|
|
| |
Remove commented out #defines of gmp-impl.h things.
(mpn_invert_limb): Remove #define, already in gmp-impl.h.
(mpn_lshiftc, mpn_rshiftc): Remove #defines, unused.
(mpn_addsub_nc): Add prototype to #define.
|
|
|
|
|
| |
tests/printf/Makefile.am, gmp-h.in, gmp-impl.h, gmp.texi: Remove C++
support, for the time being.
|
| |
|
| |
|
|
|
|
| |
(mpz_cmp_d, mpz_cmpabs_d): Corrections to #defines.
|
|
|
|
|
|
|
|
|
|
|
| |
one version.
(__GMPN_ADD, __GMPN_SUB): New macros, rewrite of mpn_add and mpn_sub.
(mpn_add, mpn_sub): Use them.
(__GMPN_COPY_REST): New macro.
* gmp-h.in, gmp-impl.h, acinclude.m4: Remove __GMP_ASM_L and
__GMP_LSYM_PREFIX, revert to ASM_L in gmp-impl.h and AC_DEFINE of
LSYM_PREFIX.
|
| |
|
|
|
|
| |
* gmp-h.in (__GMPN_COPY): Add form to help gcc on power and powerpc.
|
|
|
|
| |
* gmp-impl.h (MPN_COPY_INCR, MPN_COPY_DECR, MPN_ZERO): Ditto.
|
| |
|
|
|
|
|
| |
* gmp-h.in (_GMP_H_HAVE_FILE): Add _FILE_DEFINED for microsoft, add
notes on what symbols are for what systems.
|
|
|
|
|
| |
(mpn_add, mpn_sub): Use new style __GMP_EXTERN_INLINE.
* gmp-h.in, mp-h.in, gmp-impl.h (_EXTERN_INLINE): Remove, unused.
|
|
|
|
|
|
| |
constraints.
Worked on gcc 2.95, but gcc 3 was not so forgiving!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
mpn_add_1 and mpn_sub_1, better code for src==dst and/or n==1,
separate versions for gcc x86, gcc generic, and non-gcc.
(mpn_add_1, mpn_sub_1): Use them.
(mpn_add, mpn_sub): Ditto, to get inlines on all compilers.
(extern "C") [__cplusplus]: Let this encompass the extern inlines too.
* gmp-h.in (__GMP_LSYM_PREFIX): New substitution.
(__GMP_ASM_L): New macro.
The main gain in this new mpn_add_1 and mpn_sub_1 is optimizing
compile-time src==dst to get rid of the copy loops. mul_fft.c is a
big (ab)user of mpn_add_1 and mpn_sub_1 and the code size there on k6
shrinks by no less than 1400 bytes.
The x86 nonsense is perhaps a touch excessive for the few instructions
it saves, but if we know what we want to see on those chips and know
how to get it then why hold back.
|
| |
|
|
|
|
|
|
|
|
|
| |
* gmp-h.in, gmp-impl.h: Move MPN_CMP to gmp.h as __GMPN_CMP, leave an
MPN_CMP alias in gmp-impl.h.
* gmp-h.in (mpn_cmp): Add an inline version.
* mpn/generic/cmp.c: Use __GMP_FORCE_mpn_cmp to get code from gmp.h.
Retain the comment about why simply "x-y" is not used.
|
|
|
|
|
| |
MPN_CMP alias in gmp-impl.h.
* gmp-h.in (mpn_cmp): Add an inline version.
|
|
|
|
| |
separate entrypoints, just #define to mpz_jacobi.
|
|
|
|
| |
prototypes.
|
| |
|
| |
|
|
|
|
|
|
| |
* gmp-h.in: Merge gnu ansidecl.h tests for ANSI compilers.
ansidecl.h belongs to several gnu projects, not just binutils.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
gmp-impl.h to gmp-h.in.
(__GMPF_BITS_TO_PREC, __GMPF_PREC_TO_BITS): Ditto, and use __GMPF
prefix and add a couple of casts.
(__GMP_MAX): New macro.
* gmp-h.in (mpf_get_default_prec, mpf_get_prec, mpf_set_default_prec,
mpf_set_prec_raw): Provide "extern inline" versions, use __GMPF on the
macros.
* gmp-h.in (__GMP_BITS_PER_MP_LIMB): New templated define.
|
|
|
|
| |
mpz_si_pow_ui, pending full si support.
|