]> git.eshelyaron.com Git - emacs.git/commit
Improve float-time etc. performance
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Aug 2022 07:38:32 +0000 (00:38 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Aug 2022 08:17:14 +0000 (01:17 -0700)
commit0a4477415c9df7d2cce8906155caadaa092b167e
treed4f92705bc07309b09e75ea631336bc76040855a
parent914cf4b91ba8bdf63cd10a66f970c396329beeab
Improve float-time etc. performance

* src/timefns.c (decode_float_time): Assume T is finite.
All callers changed.
(decode_time_components): Assume FORM is not TIMEFORM_FLOAT.
All callers changed.
(decode_lisp_time): If the specified time is a float,
signal an error if it is not finite.
(Ffloat_time): If the specified time is a float,
simply return it.
src/timefns.c