<div dir="ltr"><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Aug 17, 2019 at 6:14 AM Gary E. Miller via devel <<a href="mailto:devel@ntpsec.org">devel@ntpsec.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On Sat, 17 Aug 2019 06:07:14 +0800<br>
Sanjeev Gupta <<a href="mailto:ghane0@gmail.com" target="_blank">ghane0@gmail.com</a>> wrote:<br>
<br>> The widest integer I have is "long long int", which is 8 bytes. I<br>
> need a bit more for "nuber of secs in 8192 weeks".<br>
<br>
Here is my math:<br>
<br>
seconds in 8192 weeks = 8192 weeks * 7 days in week * 24 hours in a day *<br>
60 minutes in an hour * 60 seconds in a minute<br>
<br>
>>> a = 8192 * 7 * 24 * 60 * 60<br>
>>> "%x" % a<br>
'127500000'<br>
<br>
Looks like 5 bytes to me. Is my math wrong?<br></blockquote><div><br></div><div>No, but (long long) int is signed, so you only get to use 4 bytes. :-(<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> Size of long long int: 8 bytes<br>
<br>
Looks good to me.<br></blockquote><div><br></div><div>My new push (on Gitlab) uses (unsigned long long) , and tests OK on 32-bit and 64-bit systems.<br></div><div><br></div><div>-- <br></div><div>Sanjeev<br></div></div></div>