diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-08-01 00:38:32 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-08-01 01:17:13 -0700 |
commit | 914cf4b91ba8bdf63cd10a66f970c396329beeab (patch) | |
tree | edf43bdb4f21bcb3e4f3c53e32d87a898c60da38 /lisp/emacs-lisp/autoload.el | |
parent | e3b6242938fa9bcc3aebaa0eddd6aa561136dbf1 (diff) | |
download | emacs-914cf4b91ba8bdf63cd10a66f970c396329beeab.tar.gz emacs-914cf4b91ba8bdf63cd10a66f970c396329beeab.tar.bz2 emacs-914cf4b91ba8bdf63cd10a66f970c396329beeab.zip |
Make time arithmetic more like comparison
Since time comparison says X == X, have time arithmetic behave
similarly for X - X. This should also be a bit faster due to not
having to test for floats and NaNs.
* src/timefns.c (time_arith, time_cmp):
Simplify by not worrying about NaNs, which are not time values.
(time_arith): Simplify by not worrying about subtracting nil from
nil; the caller now handles this.
(Ftime_subtract): Handle subtracting X from X specially.
Diffstat (limited to 'lisp/emacs-lisp/autoload.el')
0 files changed, 0 insertions, 0 deletions