diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-08-29 01:19:08 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-08-29 01:19:08 -0400 |
commit | c9024359e0808ad3867ddce9aab0b2d5ae557a5b (patch) | |
tree | 91c733cf94626533cb4c2c1cf2678e1122b53ce4 /bits.h | |
parent | 43b3626428d55493b22a1b60704c3d1ab55c22de (diff) | |
download | gpsd-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |