summaryrefslogtreecommitdiff
path: root/bits.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-04 16:25:02 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-03-04 16:25:02 -0500
commit5116540c96c0134aa9ba2b903a0eb6f4ee0f1c17 (patch)
tree136525c79e986c8c223eb9a9e3a0b53387323a8b /bits.c
parentabf14eb3849af57ecb37c663dff013c9936919d0 (diff)
downloadgpsd-5116540c96c0134aa9ba2b903a0eb6f4ee0f1c17.tar.gz
Simplify and regularize #ifdefs. All regression tests pass.
Diffstat (limited to 'bits.c')
-rw-r--r--bits.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/bits.c b/bits.c
index 04899c61..69b6c4af 100644
--- a/bits.c
+++ b/bits.c
@@ -69,22 +69,22 @@ int64_t sbits(char buf[], unsigned int start, unsigned int width)
{
uint64_t fld = ubits(buf, start, width);
-#ifdef SDEBUG
+#ifdef __UNUSED_DEBUG__
(void)fprintf(stderr, "sbits(%d, %d) extracts %llx\n", start, width, fld);
-#endif /* SDEBUG */
+#endif /* __UNUSED_DEBUG__ */
/*@ +relaxtypes */
if (fld & (1 << (width - 1))) {
-#ifdef SDEBUG
+#ifdef __UNUSED_DEBUG__
(void)fprintf(stderr, "%llx is signed\n", fld);
-#endif /* SDEBUG */
+#endif /* __UNUSED_DEBUG__ */
/*@ -shiftimplementation @*/
fld |= (-1LL << (width - 1));
/*@ +shiftimplementation @*/
}
-#ifdef SDEBUG
+#ifdef __UNUSED_DEBUG__
(void)fprintf(stderr, "sbits(%d, %d) returns %lld\n", start, width,
(int64_t)fld);
-#endif /* SDEBUG */
+#endif /* __UNUSED_DEBUG__ */
return (int64_t)fld;
/*@ -relaxtypes */
}