]> git.eshelyaron.com Git - emacs.git/commit
Fix bignum creation when EMACS_INT is wider than long
authorTom Tromey <tom@tromey.com>
Thu, 19 Jul 2018 21:58:10 +0000 (15:58 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 19 Jul 2018 22:08:41 +0000 (16:08 -0600)
commit76715f8921dca740880cd22c644a6328cd810846
treed85940e4c452575c453ab3ea6a7d0ec25b20f2ab
parent678881e428073b39a906c1ffd01e1b76e271cb5d
Fix bignum creation when EMACS_INT is wider than long

* src/alloc.c (mpz_set_intmax_slow, mpz_set_uintmax_slow): New
functions.
* src/data.c (arith_driver, Frem, Fmod, ash_lsh_impl, Fadd1)
(Fsub1): Use mpz_set_intmax, mpz_set_uintmax.
* src/emacs-module.c (module_make_integer): Use mpz_set_intmax.
* src/floatfns.c (Fabs): Use mpz_set_intmax.
* src/lisp.h (mpz_set_intmax, mpz_set_uintmax): New inline
functions.
(mpz_set_uintmax_slow, mpz_set_intmax_slow): Declare.
src/alloc.c
src/data.c
src/emacs-module.c
src/floatfns.c
src/lisp.h