diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-08-24 15:46:31 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-08-24 15:55:09 -0700 |
commit | a050cf80f38e6b9b33745bc62b50dab43cac7a3a (patch) | |
tree | 163b1d1fb3b78db8672527d42c3afbd66a9313f3 /lisp/emacs-lisp/lisp-mnt.el | |
parent | 2f7ca4020e4f1e30b263758439dba55551f0675d (diff) | |
download | emacs-a050cf80f38e6b9b33745bc62b50dab43cac7a3a.tar.gz emacs-a050cf80f38e6b9b33745bc62b50dab43cac7a3a.tar.bz2 emacs-a050cf80f38e6b9b33745bc62b50dab43cac7a3a.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp/lisp-mnt.el')
0 files changed, 0 insertions, 0 deletions