summaryrefslogtreecommitdiff
path: root/gmp-h.in
Commit message (Collapse)AuthorAgeFilesLines
* * gmp-h.in, mp-h.in, gmp-impl.h: __GMP_DECLSPEC at start ofKevin Ryde2001-12-071-326/+326
| | | | prototypes, for the benefit of Microsoft C.
* * gmp-h.in (mpq_inp_str, mpn_hamdist): Add missing __GMP_DECLSPEC.Kevin Ryde2001-12-031-2/+2
|
* Declare mpz_get_d_2exp and mpf_get_d_2exp.tege2001-11-291-0/+6
|
* * mpz/init2.c, mpz/realloc2.c: New files.Kevin Ryde2001-11-241-0/+6
| | | | * gmp-h.in: Add prototypes.
* * gmp-impl.h, gmp-h.in (__gmp_default_fp_limb_precision): Move back toKevin Ryde2001-11-171-1/+0
| | | | gmp-impl.h now not required for inlined mpf.
* * gmp-h.in (gmp_randinit_default, gmp_randinit_lc_2exp_size: AddKevin Ryde2001-11-171-0/+7
| | | | prototypes.
* * scanf/doscan.c, scanf/fscanf.c, scanf/fscanffuns.c, scanf/scanf.c,Kevin Ryde2001-11-151-0/+29
| | | | | | | 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.
* * gmp-h.in: Remove parameter names from prototypes, to keep out ofKevin Ryde2001-11-101-6/+6
| | | | application namespace.
* * gmp-h.in, gmp-impl.h, mpf/abs.c, mpf/neg.c, mpf/get_prc.c,Kevin Ryde2001-11-071-130/+0
| | | | | | | 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.
* * gmp-h.in, gmpxx.h: Use <iosfwd> not whole <iostream>.Kevin Ryde2001-10-271-1/+1
|
* Declare mpz_millerrabin.tege2001-10-231-0/+3
|
* * gmp-h.in: Don't give both prototypes and inlines, except on gcc.Kevin Ryde2001-10-111-5/+67
| | | | This is necessary for Cray C++, and perhaps others.
* * gmp-h.in, gmp-impl.h: Use #includes to get necessary standardKevin Ryde2001-10-101-8/+7
| | | | classes, add std:: to prototypes.
* 2001-10-09 Gerardo Ballabio <ballabio@sissa.it>Kevin Ryde2001-10-091-0/+4
| | | | | * cxx/ismpf.cc, cxx/ismpq.cc, cxx/ismpz.cc: New files. * gmp-h.in: Add prototypes.
* Amend to operator<<Kevin Ryde2001-10-021-3/+3
| | | | | | * 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/Makefile.am, cxx/Makefile.in, cxx/osdoprnti.cc, cxx/osfuns.cc,Kevin Ryde2001-10-011-0/+10
| | | | | cxx/osmpf.cc, cxx/osmpq.cc, cxx/osmpz.cc: New files. * gmp-h.in, gmp-impl.h: Prototypes and support.
* * gmp-h.in (__GNU_MP__, __GNU_MP_VERSION): Bump to 4.0.Kevin Ryde2001-10-011-3/+3
|
* Test if __STDIO__ is defined in Apple MPW to know if <stdio.h>was includedKent Boortz2001-10-011-1/+2
|
* (__GMPN_AORS_1): Rewrite to work around Cray compiler bug.tege2001-09-271-38/+42
|
* (__GMPN_AORS_1): Remove param TEST, add OP and CB.tege2001-09-151-7/+6
| | | | | Postpone zeroing of (cout). (__GMPN_ADD_1, __GMPN_SUB_1): Corresponding changes.
* * configure.in, gmp-h.in (__GMP_HAVE_HOST_CPU_FAMILY_power,Kevin Ryde2001-09-111-2/+4
| | | | | | __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.
* More of:Kevin Ryde2001-09-111-3/+8
| | | | | | * gmp-h.in (__GMP_EXTERN_INLINE): Add a definition for SCO 8 cc. Need "static inline", not "extern inline".
* Let __DECC mean __GMP_HAVE_CONST, etc.tege2001-09-111-1/+2
|
* * gmp-h.in (__GMP_EXTERN_INLINE): Add a definition for SCO 8 cc.Kevin Ryde2001-09-111-8/+19
|
* * gmp-h.in, version.c (gmp_version): Make the pointer "const" as wellKevin Ryde2001-09-111-1/+1
| | | | as the string.
* * gmp-h.in: Put #define renamings with prototypes.Kevin Ryde2001-08-301-294/+472
| | | | | | | 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.
* * configure.in, acinclude.m4, Makefile.am, printf/Makefile.am,Kevin Ryde2001-08-161-10/+0
| | | | | tests/printf/Makefile.am, gmp-h.in, gmp-impl.h, gmp.texi: Remove C++ support, for the time being.
* * gmp-h.in, gmp-impl.h (_gmp_rand): Move prototype to gmp-impl.h.Kevin Ryde2001-07-311-2/+0
|
* * gmp-h.in, gmp-impl.h: Additions for gmp_printf etc.Kevin Ryde2001-07-231-2/+87
|
* * gmp-h.in (mpq_out_str): Give #define even without prototype.Kevin Ryde2001-07-231-3/+3
| | | | (mpz_cmp_d, mpz_cmpabs_d): Corrections to #defines.
* * gmp-h.in (__GMPN_AORS_1): Remove x86 and gcc versions, leave justKevin Ryde2001-07-171-365/+118
| | | | | | | | | | | 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_ADD_1 etc) [x86]: Don't use this on egcs 2.91.Kevin Ryde2001-07-111-10/+11
|
* More of:Kevin Ryde2001-07-101-3/+4
| | | | * gmp-h.in (__GMPN_COPY): Add form to help gcc on power and powerpc.
* * gmp-h.in (__GMPN_COPY): Add form to help gcc on power and powerpc.Kevin Ryde2001-07-101-10/+47
| | | | * gmp-impl.h (MPN_COPY_INCR, MPN_COPY_DECR, MPN_ZERO): Ditto.
* * gmp-h.in (__GMPN_ADD_1): Avoid a bug in egcs 2.91.66.Kevin Ryde2001-07-101-6/+9
|
* * gmp-h.in (mpq_cmp_si): Add prototype.Kevin Ryde2001-07-061-3/+18
| | | | | * gmp-h.in (_GMP_H_HAVE_FILE): Add _FILE_DEFINED for microsoft, add notes on what symbols are for what systems.
* * gmp-h.in (__GMP_EXTERN_INLINE): Set to "inline" for C++.Kevin Ryde2001-07-031-18/+16
| | | | | (mpn_add, mpn_sub): Use new style __GMP_EXTERN_INLINE. * gmp-h.in, mp-h.in, gmp-impl.h (_EXTERN_INLINE): Remove, unused.
* * gmp-h.in (__GMPN_ADD_1, __GMPN_SUB_1) [i386]: Fix some asm outputKevin Ryde2001-06-231-28/+28
| | | | | | constraints. Worked on gcc 2.95, but gcc 3 was not so forgiving!
* * gmp-h.in (__GMPN_ADD_1, __GMPN_SUB_1): New macros, rewrite ofKevin Ryde2001-06-191-80/+418
| | | | | | | | | | | | | | | | | | | | 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 (mpn_cmp): Add __GMP_ATTRIBUTE_PURE.Kevin Ryde2001-06-191-1/+1
|
* More of:Kevin Ryde2001-06-171-19/+20
| | | | | | | | | * 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.
* * gmp-h.in, gmp-impl.h: Move MPN_CMP to gmp.h as __GMPN_CMP, leave anKevin Ryde2001-06-121-0/+38
| | | | | MPN_CMP alias in gmp-impl.h. * gmp-h.in (mpn_cmp): Add an inline version.
* * mpz/jacobi.c, gmp-h.in (mpz_kronecker, mpz_legendre): RemoveKevin Ryde2001-06-101-4/+10
| | | | separate entrypoints, just #define to mpz_jacobi.
* * gmp-h.in (mpz_fib2_ui, mpz_lucnum_ui, mpz_lucnum2_ui): AddKevin Ryde2001-06-071-1/+13
| | | | prototypes.
* Fix a typo in a comment.Kevin Ryde2001-05-271-1/+1
|
* * configure.in, gmp-h.in, mp-h.in: Add support for windows DLLs.Kevin Ryde2001-05-271-301/+363
|
* Amend comments for:Kevin Ryde2001-05-191-6/+6
| | | | | | * gmp-h.in: Merge gnu ansidecl.h tests for ANSI compilers. ansidecl.h belongs to several gnu projects, not just binutils.
* * gmp-h.in: Merge binutils ansidecl.h tests for ANSI compilers.Kevin Ryde2001-05-171-15/+27
|
* * gmp-h.in, gmp-impl.h (__gmp_default_fp_limb_precision): Move fromKevin Ryde2001-05-171-3/+64
| | | | | | | | | | | | | 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.
* * gmp-h.in, Makefile.am, mpz/Makefile.am, tests/mpz/t-pow.c: RemoveKevin Ryde2001-05-131-4/+0
| | | | mpz_si_pow_ui, pending full si support.