summaryrefslogtreecommitdiff
path: root/bits.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-08-29 01:19:08 -0400
committerEric S. Raymond <esr@thyrsus.com>2014-08-29 01:19:08 -0400
commitc9024359e0808ad3867ddce9aab0b2d5ae557a5b (patch)
tree91c733cf94626533cb4c2c1cf2678e1122b53ce4 /bits.h
parent43b3626428d55493b22a1b60704c3d1ab55c22de (diff)
downloadgpsd-c9024359e0808ad3867ddce9aab0b2d5ae557a5b.tar.gz
Wrote code and test for a function to left-shift bit arrays).
To be used for handling AIS Type 25 and 26 messages.
Diffstat (limited to 'bits.h')
-rw-r--r--bits.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bits.h b/bits.h
index fe831a0c..326329de 100644
--- a/bits.h
+++ b/bits.h
@@ -50,6 +50,8 @@ extern double getbed64(const char *, int);
extern void putbef32(char *, int, float);
extern void putbed64(char *, int, double);
+extern void shiftleft(unsigned char *, int, unsigned short);
+
/* bitfield extraction */
extern uint64_t ubits(unsigned char buf[], unsigned int, unsigned int, bool);
extern int64_t sbits(signed char buf[], unsigned int, unsigned int, bool);