summaryrefslogtreecommitdiff
path: root/bits.h
Commit message (Collapse)AuthorAgeFilesLines
* SPDXify the licerse references.Eric S. Raymond2018-03-081-1/+1
|
* uint was rmoved in C99. If gpsd enforce C99, then uint must go.Gary E. Miller2016-08-151-2/+2
| | | | uint is now unsigned int.
* Add getbeu24() to grab a 24 bit big endian word from a buffer.Gary E. Miller2016-03-301-0/+1
| | | | GPS subframe data comes in 24 bit words.
* More magic-number elimination.Eric S. Raymond2014-09-121-0/+4
|
* Wrote code and test for a function to left-shift bit arrays).Eric S. Raymond2014-08-291-0/+2
| | | | To be used for handling AIS Type 25 and 26 messages.
* Add a function to put a big-endian double. Not yet used.Eric S. Raymond2013-09-201-0/+1
| | | | Adapted from a patch by Igor Socec <isocec@gmail.com>.
* The signed/unsigned char fix.Michael Tatarinov2013-02-181-2/+2
| | | | | | All regression tests pass on Raspbian “wheezy”. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Nuke trailing whitespace in C source.Eric S. Raymond2012-09-071-3/+3
|
* Cosmetic fix.Eric S. Raymond2012-06-031-7/+6
|
* Refacter the bits.c stuff to eliminate ugly globals...Eric S. Raymond2012-06-021-15/+6
| | | | | | ...and be more explicit about operand sizes. All regressuion tests [ass, code splints clean.
* Remove obsoletre comment part. Should have gone with last commit.Eric S. Raymond2012-05-301-3/+0
|
* Remove a kludge. Affects only the Evermore binary driver.Eric S. Raymond2012-05-301-10/+3
| | | | | | If I botched incrementing any of the offsets, this could break the Evermore binary driver - no way to test that, we don't have a xapture log for it. But the regression tests we do have all pass.
* Ugh. This should have been in the last commit.Eric S. Raymond2012-05-191-11/+0
|
* Fix confusing whitespace.Eric S. Raymond2012-05-111-2/+2
|
* More steps towards little-endiuan extraction.Eric S. Raymond2012-04-191-2/+2
| | | | All normal regressions tests and the test_bits unit test pass.
* Rename some bit extractors.Eric S. Raymond2012-04-191-2/+2
|
* We no longer rely on long long to be 64 bits.Eric S. Raymond2011-01-251-7/+3
| | | | All regression tests pass.
* Rename the bits.h macros to be explicit about operand length.Eric S. Raymond2010-12-261-22/+22
| | | | | | With most machines being 64-bit now, the assumption that "word" = 16 bits and "long" = 32 bits is increasingly archaic. This commit removes it from our naming conventions.
* Vanish away Id and Rev $ keywords, git won't expand them to anything useful.Eric S. Raymond2010-03-131-8/+2
|
* Copyright stamps everywhere. No code changes.Eric S. Raymond2010-03-111-1/+8
|
* Address Berlios tracker bug #16299: Eric S. Raymond2009-10-121-13/+13
| | | | | Solaris lacks u_int*_t typedefs. Switch to the C99 standard ones. All regression tests pass.
* Continuing the splint cleanup.Eric S. Raymond2009-09-101-2/+2
|
* Unify the header protection macro style a bit. Chris Kuethe2008-08-031-3/+6
| | | | | | | Headers likely to be private to gpsd are prefixed with _GPSD_, reusable ones like crc24q.h don't get the _GPSD_ prefix. Protection macro goes right up near the top of the file, right after the SVN id, and it's closure is the last line of the file.
* Factor out the bitfield functions, fix a bug in one, add tests.Eric S. Raymond2008-07-161-3/+8
|
* No longer necessary to define LITTLE_ENDIAN_PROTOCOL.Eric S. Raymond2008-07-151-2/+1
| | | | All regression tests pass.
* Rename big-endian bit extraction macros.Eric S. Raymond2008-07-151-15/+11
|
* Rename the little-endian bit-unpacking macros to be explicit about their LEness.Eric S. Raymond2008-07-151-10/+12
|
* Fix unclean references to the packet output buffer from bits.h.Eric S. Raymond2008-07-081-8/+8
|
* Split the packet-sniffer internals out of the session structure. Eric S. Raymond2006-11-301-7/+7
| | | | | | | | | | | | | This is a big, super-intrusive patch but changes no logic at all -- it's all about ripping out some of the gps_device_t structure members into a new gps_packet_t structure. Even the driver API doesn't change at all, this is all libgpsd(3) internals being rearranged. The motivation here is that we want to kill off the ad-hoc Python implementation of a packet-sniffer in gpsfake. To do that we need to be able to write a "pure" packet sniffer that uses the same C code as the daemon's but without being welded to the rest of the libgpsd(3) code. This is the first step towards that.
* Untested (but harmless if buggy) code to get subtype info from a Zodiac.Eric S. Raymond2006-11-021-1/+2
|
* Correct an erroneous comment.Eric S. Raymond2006-10-271-3/+6
|
* Add subversion ID tags near the beginning of every file.Chris Kuethe2006-09-211-0/+1
| | | | First line where possible, second line for scripts called with #!
* More EverMore fixes from Petr Slansky.Eric S. Raymond2005-07-201-17/+18
|
* Add little-endian macros to bits.h. More fixes for the DBUS problem.Eric S. Raymond2005-07-181-4/+27
|
* USED_SET needs to be a separate mask from SATELLITES_SET...Eric S. Raymond2005-07-081-3/+3
| | | | | ...because the NMEA driver sets them in different places. Add satellite-picture parsing to Evermore driver.
* Rob Janssen's first TSIP patch.Eric S. Raymond2005-06-111-2/+2
|
* New version of bits.h with fixed-width types for cross-architecture portability.Eric S. Raymond2005-06-101-21/+25
| | | | Also, the bit-getter macros from zodiac.c now live here.
* Make sirfmon use the bits macros.Eric S. Raymond2005-06-091-5/+18
|
* Second stage of bits.h integration; make the buffer argument explicit.Eric S. Raymond2005-06-091-13/+10
|
* First step in integrating Rob Janssen's new macros.Eric S. Raymond2005-06-091-0/+42