]> git.eshelyaron.com Git - emacs.git/commit
Test !FASTER_TIMEFNS with builtin resolutions
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 14 Jul 2024 16:36:01 +0000 (17:36 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 17 Jul 2024 21:53:58 +0000 (23:53 +0200)
commit43c2a401091cf80a9a0a9a53a7bb8fc46b01012b
tree77c4ec557646388a880f32c8e374bd2e2a32e5ac
parent984dc67ef2f5062bc3a78b2dd31861eaba933ada
Test !FASTER_TIMEFNS with builtin resolutions

* src/timefns.c (timespec_hz, trillion, ztrillion):
If !FASTER_TIMEFNS, do not optimize the calculations of
these variables.  This gives better test coverage of the
slow-path code, when compiling with -DFASTER_TIMEFNS=0.
(NEED_ZTRILLION_INIT): Move up, to simplify #ifdefery.
Now defined or not defined, instead of being 1 or not defined,
since it is used only via #ifdef.

(cherry picked from commit d10c1796c99637d847fa78e3fcb438d03774a00b)
src/timefns.c