diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-07-26 20:24:29 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-07-26 20:24:29 +0000 |
commit | 2bb7f84e7f141f24f8dc6d3a2ac73bff3481ad48 (patch) | |
tree | 00d309d15fcf70d6e43f7d06da71774fdef3897a /isgps.c | |
parent | 3a34fcc16b2c951d10892fa43d6921865fa1145c (diff) | |
download | gpsd-2bb7f84e7f141f24f8dc6d3a2ac73bff3481ad48.tar.gz |
Big-endian support in rtcm.c.
Diffstat (limited to 'isgps.c')
-rw-r--r-- | isgps.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -307,18 +307,3 @@ enum isgpsstat_t isgps_decode(struct gps_device_t *session, } /*@ +usereleased +compdef @*/ -#if WORDS_BIGENDIAN -unsigned bitreverse(unsigned x, unsigned w) -{ - unsigned char mask = 1 << (w - 1), result = 0; - - while (value) /* skip most significant bits that are zero */ - { - if (value & 1) /* replace mod (machine dependency) */ - result |= mask; - mask >>= 1; - value >>= 1; - } - return result; -} -#endif |