]> git.eshelyaron.com Git - emacs.git/commit
Improve (round FIXNUM FIXNUM) performance
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 5 Sep 2018 07:21:02 +0000 (00:21 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 5 Sep 2018 07:23:49 +0000 (00:23 -0700)
commitbaa6ae8724fd4cd7631164a89bf8eed4ff79cfc0
treec57f4a6e7a764baee33dbacb5fc58f7ef0269725
parentccb3891ff5446b578b9306aec0fd9c5ec3ed8e98
Improve (round FIXNUM FIXNUM) performance

* src/floatfns.c (rounding_driver):
New arg fixnum_divide.  All callers changed.
(ceiling2, floor2, truncate2, round2): New functions.
Not that new, actually; these are essentially taken from Emacs 26.
(Fceiling, Ffloor, Fround, Ftruncate): Use them.
src/floatfns.c