diff options
author | Sanjeev Gupta <ghane0@gmail.com> | 2019-02-06 01:19:38 +0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2019-02-05 11:26:01 -0800 |
commit | 4693aa99ca96fd9e6ce56eb2a0c0fbce4928ad42 (patch) | |
tree | a8f75f6de9f9ab653a8c9e95120c7f61f3e09acc /contrib/ntpshmviz | |
parent | adaa22b0f7f3578d41701ef8f74b615855287ef5 (diff) | |
download | gpsd-4693aa99ca96fd9e6ce56eb2a0c0fbce4928ad42.tar.gz |
For numpy, use longdouble rather than float128
On 32-bit machines, float128 may not be defined.
Additionally, there is no guarantee that float96
or float128, etc, will be defined or available on _any_
architecture. The float128 and float96 exports are,
at best, 80-bit represenations with 48 and 16 bits of
padding. longdouble is portable.
Signed-off-by: Gary E. Miller <gem@rellim.com>
Diffstat (limited to 'contrib/ntpshmviz')
-rwxr-xr-x | contrib/ntpshmviz | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/ntpshmviz b/contrib/ntpshmviz index c0b32d79..684798f2 100755 --- a/contrib/ntpshmviz +++ b/contrib/ntpshmviz @@ -93,8 +93,8 @@ class ntpOffset(object): line = line.lstrip() record = line.split(' ') try: - offset = (numpy.float128(record[3]) - - numpy.float128(record[4])) + offset = (numpy.longdouble(record[3]) - + numpy.longdouble(record[4])) except: print ("Invalid data: ", sys.exc_info()[0], ". Data was: ", line) |