NetBSD 6.1.5 doesn't have ldexpl in math.h

Eric S. Raymond esr at thyrsus.com
Fri Sep 8 02:39:55 UTC 2017


Hal Murray via devel <devel at ntpsec.org>:
> 
> [Using ldexp when ldexpl isn't available.]
> > Serious loss of precision, but maybe the best we can do.
> 
> Does anybody have any data on how serious that would be?
> 
> Does ntp classic do anything interesting in this area?  (That's the sort of 
> thing that Dave Mills is likely to have thought about.)
> 
> Did anybody notice any problems before that change?
> 
> commit 3705a499961391748c2b2cf1383270924f2f9df9
> Author: Eric S. Raymond <esr at thyrsus.com>
> Date:   Thu Aug 17 09:32:38 2017 -0400
> 
>     Partially address Gitlab issue #270: Loss of precision in step_systime()

Gary originally raised the issue.  He might have seen it in the wild.

No, NTP doesn't do anything interesting here.  The code predates the era
whend long double was standardized and generally available, a transition
that might have been as late as C99.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

Please consider contributing to my Patreon page at https://www.patreon.com/esr
so I can keep the invisible wheels of the Internet turning. Give generously -
the civilization you save might be your own.



More information about the devel mailing list