✘NetBSD failure.

Gary E. Miller gem at rellim.com
Fri Apr 14 00:33:31 UTC 2017


Yo Hal!

More info on the NetBSD bug:

TEST(lfpfunc, FDF_RoundTrip)../../tests/libntp/lfpfunc.c:268::FAIL: Expected 0.0 Was 2147482624.0. 2147483647.500000 diff 2147482624.000000 not within 2.384186e-07

2147483647 is hex: 7FFFFFFF
2147482624 is hex: 7FFFFC00

If you know your floaing point you know that 7FFFFFFF fits in a double
just fine.  But if you put it in float and then back to hex, you get
7FFFFC00.

That because a float is only 21 significant digits, the same significant
digits as in 7FFFFC00

So somewhere netBSD is using a float instead of a double...

Or something else that is netBSD specific...

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20170413/72647c4b/attachment.bin>


More information about the devel mailing list