aboutsummaryrefslogtreecommitdiffstats
path: root/src/mini-gmp.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use Gnulib libgmp modulePaul Eggert2020-07-091-304/+0
| | | | | | | | | | | | | | | | | | | | Instead of doing GMP by hand, use the Gnulib libgmp module. * .gitignore: Add lib/gmp.h. * admin/merge-gnulib (GNULIB_MODULES): Add libgmp. * configure.ac (GMP_LIB, GMP_OBJ): Remove. Gnulib uses the name LIB_GMP, so all uses changed. All uses of GMP_OBJ removed. (HAVE_GMP): Set this from Gnulib’s variables. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lib/mini-gmp-gnulib.c, lib/mini-gmp.c, lib/mini-gmp.h, m4/libgmp.m4: New files, copied from Gnulib. * src/bignum.h, test/data/emacs-module/mod-test.c: Include gmp.h unconditionally. * src/mini-gmp-emacs.c, src/mini-gmp.c, src/mini-gmp.h: Remove. This moves these files from src to lib, and updates them to the current GMP version. * test/Makefile.in (GMP_H): New macro. ($(test_module)): Use it to decide whether to compile mini-gmp-gnulib.c too.
* Update mini-gmpPaul Eggert2020-01-261-2/+6
| | | | | | | | | | | | | | | * src/mini-gmp.c, src/mini-gmp.h: Copy from GMP 6.2.0. This incorporates: 2019-12-05 remove some sizeof(mp_limb_t) 2019-12-04 (mpn_invert_3by2): Remove special code for limb sizes 2019-12-04 (mpn_invert_3by2): Limit size of an intermediate 2019-11-20 (mpn_invert_3by2): Use xor instead of negation 2019-11-19 (mpn_invert_3by2): Move an assert earlier 2019-11-19 (mpn_invert_3by2): Add a new shortcut 2019-11-17 Prepend "unsigned" to MINI_GMP_LIMB_TYPE 2019-11-17 Enable testing with different limb sizes (types) 2019-11-20 Use already defined constants 2019-11-09 Avoid undefined behaviour with small limb sizes
* Update from GMPPaul Eggert2019-04-281-1/+1
| | | | | | | | * admin/update-copyright (updatable_files): Don’t update copyright year on files copied from GMP, so that they’re identical to upstream. * src/mini-gmp.c, src/mini-gmp.h: Copy from GMP development versions as of 2019-01-01 20:15:39 UTC.
* Update more copyright yearsPaul Eggert2018-12-311-1/+1
| | | | | | | | Update some other copyright years automatically, by running: Run 'UPDATE_COPYRIGHT_YEAR=2019 \ UPDATE_COPYRIGHT_USE_INTERVALS=1 \ UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79 admin/update-copyright' followed by 'admin/merge-gnulib'.
* Add configury for GMP libraryTom Tromey2018-07-121-0/+300
* configure.ac (GMP_LIB, GMP_OBJ): New substs. * src/Makefile.in (GMP_OBJ, GMP_OBJ): New variables. (base_obj): Add GMP_OBJ. (LIBES): Add GMP_LIB. * src/mini-gmp.h: New file. * src/mini-gmp.c: New file.