summaryrefslogtreecommitdiff
path: root/isgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-07-26 20:24:29 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-07-26 20:24:29 +0000
commit2bb7f84e7f141f24f8dc6d3a2ac73bff3481ad48 (patch)
tree00d309d15fcf70d6e43f7d06da71774fdef3897a /isgps.c
parent3a34fcc16b2c951d10892fa43d6921865fa1145c (diff)
downloadgpsd-2bb7f84e7f141f24f8dc6d3a2ac73bff3481ad48.tar.gz
Big-endian support in rtcm.c.
Diffstat (limited to 'isgps.c')
-rw-r--r--isgps.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/isgps.c b/isgps.c
index 0917ea2d..5bba694e 100644
--- a/isgps.c
+++ b/isgps.c
@@ -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