diff options
| author | Paul Eggert | 2022-08-01 00:38:32 -0700 |
|---|---|---|
| committer | Paul Eggert | 2022-08-01 01:17:13 -0700 |
| commit | 914cf4b91ba8bdf63cd10a66f970c396329beeab (patch) | |
| tree | edf43bdb4f21bcb3e4f3c53e32d87a898c60da38 /src/bytecode.c | |
| parent | e3b6242938fa9bcc3aebaa0eddd6aa561136dbf1 (diff) | |
| download | emacs-914cf4b91ba8bdf63cd10a66f970c396329beeab.tar.gz 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 'src/bytecode.c')
0 files changed, 0 insertions, 0 deletions