]> git.eshelyaron.com Git - emacs.git/commit
Speed up % and mod with fixnum denom
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Aug 2019 22:46:31 +0000 (15:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Aug 2019 22:55:09 +0000 (15:55 -0700)
commita050cf80f38e6b9b33745bc62b50dab43cac7a3a
tree163b1d1fb3b78db8672527d42c3afbd66a9313f3
parent2f7ca4020e4f1e30b263758439dba55551f0675d
Speed up % and mod with fixnum denom

* src/data.c (integer_remainder): New function.  When the
numerator is a bignum and the denominator is small, this function
uses mpz_tdiv_ui, which should be faster than mpz_tdiv_r.
(Frem, Fmod): Use it.
src/data.c