From 5116540c96c0134aa9ba2b903a0eb6f4ee0f1c17 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 4 Mar 2011 16:25:02 -0500 Subject: Simplify and regularize #ifdefs. All regression tests pass. --- bits.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bits.c') 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 */ } -- cgit v1.2.1