summaryrefslogtreecommitdiff
path: root/isgps.c
diff options
context:
space:
mode:
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