diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-05-19 22:17:57 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-05-19 22:17:57 -0400 |
commit | f3ee354cefbabc961c3b0c4d4de173cfb2e3f303 (patch) | |
tree | a05797700307720e8b205077d614650a9875d7b5 /bits.h | |
parent | 73c7221b9bbd7ca9616eecef5c99f1f76eac0c04 (diff) | |
download | gpsd-f3ee354cefbabc961c3b0c4d4de173cfb2e3f303.tar.gz |
Ugh. This should have been in the last commit.
Diffstat (limited to 'bits.h')
-rw-r--r-- | bits.h | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -69,17 +69,6 @@ union long_double { #define getbef(buf, off) (i_f.i = getbes32(buf, off), i_f.f) #define getbed(buf, off) (l_d.l = getbes64(buf, off), l_d.d) - -/* Zodiac protocol description uses 1-origin indexing by little-endian word */ -#define get16z(buf, n) ( (buf[2*(n)-2]) \ - | (buf[2*(n)-1] << 8)) -#define get32z(buf, n) ( (buf[2*(n)-2]) \ - | (buf[2*(n)-1] << 8) \ - | (buf[2*(n)+0] << 16) \ - | (buf[2*(n)+1] << 24)) -#define getstringz(to, from, s, e) \ - (void)memcpy(to, from+2*(s)-2, 2*((e)-(s)+1)) - /* bitfield extraction */ extern uint64_t ubits(char buf[], unsigned int, unsigned int, bool); extern int64_t sbits(char buf[], unsigned int, unsigned int, bool); |