]> sourceware.org Git - newlib-cygwin.git/commit
When converting ns,us,ms to sbt, return the ceil()
authorimp <imp@FreeBSD.org>
Thu, 15 Nov 2018 16:02:13 +0000 (16:02 +0000)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Tue, 4 Dec 2018 06:30:18 +0000 (07:30 +0100)
commit7bf8fc0987838fc435e251183410ed16bfb36c95
treebe5b8789935d30efd2c04d23762f68f152db0a1c
parent68b1d72e1d966064e15ad40faf8dfd2d99438ca3
When converting ns,us,ms to sbt, return the ceil()

of the result rather than the floor(). Returning the floor means that
sbttoX(Xtosbt(y)) != y for almost all values of y. In practice, this
results in a difference of at most 1 in the lsb of the sbintime_t. This
difference is meaningless for all current users of these functions, but
is important for the newly introduced sysctl conversion routines which
implicitly rely on the transformation being idempotent.

Sponsored by: Netflix, Inc
newlib/libc/include/sys/time.h
This page took 0.030677 seconds and 5 git commands to generate.