summaryrefslogtreecommitdiff
path: root/bits.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-19 22:17:57 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-19 22:17:57 -0400
commitf3ee354cefbabc961c3b0c4d4de173cfb2e3f303 (patch)
treea05797700307720e8b205077d614650a9875d7b5 /bits.h
parent73c7221b9bbd7ca9616eecef5c99f1f76eac0c04 (diff)
downloadgpsd-f3ee354cefbabc961c3b0c4d4de173cfb2e3f303.tar.gz
Ugh. This should have been in the last commit.
Diffstat (limited to 'bits.h')
-rw-r--r--bits.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/bits.h b/bits.h
index 95c849cf..751423b5 100644
--- a/bits.h
+++ b/bits.h
@@ -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);