diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-09-20 16:01:20 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-09-20 16:01:20 -0400 |
commit | 4e6f464178622bcab7cd8b56d43655e2a19b3457 (patch) | |
tree | 7a27d35d27a3fecf42981aa33ab1a21d97f86697 /bits.h | |
parent | 3a8ec0eb97121f8d236e5f3c8b3f3fe16a6e3f14 (diff) | |
download | gpsd-4e6f464178622bcab7cd8b56d43655e2a19b3457.tar.gz |
Add a function to put a big-endian double. Not yet used.
Adapted from a patch by Igor Socec <isocec@gmail.com>.
Diffstat (limited to 'bits.h')
-rw-r--r-- | bits.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -48,6 +48,7 @@ extern double getbed64(const char *, int); #define putbe32(buf,off,l) do {putbe16(buf, (off), (l) >> 16); putbe16(buf, (off)+2, (l));} while (0) extern void putbef32(char *, int, float); +extern void putbed64(char *, int, double); /* bitfield extraction */ extern uint64_t ubits(unsigned char buf[], unsigned int, unsigned int, bool); |