aboutsummaryrefslogtreecommitdiffstats
path: root/java/org/gnu
diff options
context:
space:
mode:
authorPaul Eggert2024-07-07 20:50:47 +0200
committerPaul Eggert2024-07-11 16:01:41 +0200
commit34bde2f790decfff61f03c5ab92ad0436958bacf (patch)
tree8f620822f5d5117e167a6f945b8073ddf6cea226 /java/org/gnu
parent22a3a90f7636a9cb55a463a8149d6e3ec12d1b81 (diff)
downloademacs-34bde2f790decfff61f03c5ab92ad0436958bacf.tar.gz
emacs-34bde2f790decfff61f03c5ab92ad0436958bacf.zip
Push some time conversions down
* src/timefns.c: Push some time conversions down to lower level fns. This is a win in its own right and should allow for further speedups. (lisp_to_timespec): Remove; this convenience function is no longer needed now that there would be only one caller. Remaining caller changed to use definiens. (enum cform): New constant CFORM_TIMESPEC. Also, CFORM_SECS_ONLY now generates a struct timespec instead of a struct lisp_time. (union c_time.ts): New member. (decode_ticks_hz): Handle new struct timespec cases. (decode_float_time, lisp_time_struct): New arg cform, and return union c_time rather than struct lisp_time. All callers changed. (list4_to_timespec, lisp_time_argument, lisp_seconds_argument): Let lower-level function do the conversion, to allow for better optimization.
Diffstat (limited to 'java/org/gnu')
0 files changed, 0 insertions, 0 deletions