summaryrefslogtreecommitdiff
path: root/bits.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-09-20 16:01:20 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-09-20 16:01:20 -0400
commit4e6f464178622bcab7cd8b56d43655e2a19b3457 (patch)
tree7a27d35d27a3fecf42981aa33ab1a21d97f86697 /bits.h
parent3a8ec0eb97121f8d236e5f3c8b3f3fe16a6e3f14 (diff)
downloadgpsd-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bits.h b/bits.h
index e8a1d664..fe831a0c 100644
--- a/bits.h
+++ b/bits.h
@@ -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);