[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] PPS and doubles
From: |
Gary E. Miller |
Subject: |
Re: [gpsd-dev] PPS and doubles |
Date: |
Sun, 1 Feb 2015 15:12:48 -0800 |
Yo Hal!
On Sun, 01 Feb 2015 15:06:16 -0800
Hal Murray <address@hidden> wrote:
> Took me a while to understand that.
> 33+20 is 53, not 63.
> Looks like a typo here:
> tv_nsec = 20 bits of precision
> Microseconds would be 20 bits. Nanoseconds are 30 bits.
Gack. You are correct. I got it right in a comment I just
added to ppsthread.c
But the moral is the same: 63 bits of data does not fit in a double.
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
address@hidden Tel:+1(541)382-8588