New config feature - time1 can declare GPS wraparound compensation

Gary E. Miller gem at rellim.com
Fri Aug 16 21:49:09 UTC 2019


Yo Sanjeev!

On Sat, 17 Aug 2019 05:27:17 +0800
Sanjeev Gupta <ghane0 at gmail.com> wrote:

> Gary,
> 
> On my 32 bit x86, gcc 8
> 
> Size of int: 4 bytesSize of long int: 4 bytesSize of long long int: 8
> bytesSize of float: 4 bytesSize of double: 8 bytesSize of long double:
> 12 bytesSize of char: 1 byte
> 
> I have cast explicitly to (long double), please review:
> 
> https://gitlab.com/NTPsec/ntpsec/merge_requests/1015

I do not like using floating point when ints will do.  Too much chance
to get things like 8.999999999999


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: 851 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20190816/bb32d91a/attachment.bin>


More information about the devel mailing list