]> git.ipfire.org Git - thirdparty/coreutils.git/commit
timeout: remove dependence on libm
authorPádraig Brady <P@draigBrady.com>
Sat, 5 Apr 2025 20:48:05 +0000 (21:48 +0100)
committerPádraig Brady <P@draigBrady.com>
Sat, 5 Apr 2025 23:07:49 +0000 (00:07 +0100)
commitdce566553cffef61d49ad135f2b5a9e1d96fe34f
tree4423568c520083c86c8e56bb1a32bc6ebba2aa9d
parent65b694257f04a8b5b566e35c58a0ba5b51f8a06c
timeout: remove dependence on libm

This was seen to add about 100,000 ns to the startup time,
on a 2.6 GHz i7-5600U with glibc 2.40.

* .gitignore: Remove /lib/fenv.h.
* bootstrap.conf: Remove fenv-rounding and signbit deps.
* src/local.mk: Remove fenv lib dependency.
* src/timeout.c (is_negative): A new helper function to
be equivalent of signbit in the underflow case.
(parse_duration): Remove the rounding up logic,
as a nanosecond here or there has no significance.
.gitignore
bootstrap.conf
src/local.mk
src/timeout.c