diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-03-04 16:25:02 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-03-04 16:25:02 -0500 |
commit | 5116540c96c0134aa9ba2b903a0eb6f4ee0f1c17 (patch) | |
tree | 136525c79e986c8c223eb9a9e3a0b53387323a8b /bits.c | |
parent | abf14eb3849af57ecb37c663dff013c9936919d0 (diff) | |
download | gpsd-5116540c96c0134aa9ba2b903a0eb6f4ee0f1c17.tar.gz |
Simplify and regularize #ifdefs. All regression tests pass.
Diffstat (limited to 'bits.c')
-rw-r--r-- | bits.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 */ } |