aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode.c
diff options
context:
space:
mode:
authorPaul Eggert2022-08-01 00:38:32 -0700
committerPaul Eggert2022-08-01 01:17:13 -0700
commit914cf4b91ba8bdf63cd10a66f970c396329beeab (patch)
treeedf43bdb4f21bcb3e4f3c53e32d87a898c60da38 /src/bytecode.c
parente3b6242938fa9bcc3aebaa0eddd6aa561136dbf1 (diff)
downloademacs-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