From 43402d1c769900cf93e51844778562a59416984e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 7 Mar 2012 21:57:07 +1100 Subject: [PATCH] Revert "Bypass most checks performed via the inbuilt expect macros likely and unlikely for non-debug builds." This reverts commit 3a1d0978303d9d67416656a333d8fd5d60b1699d. Did not offer any substantial speedup. --- configure.ac | 2 +- lrzip_private.h | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 5d133c3..3ef8ccd 100644 --- a/configure.ac +++ b/configure.ac @@ -80,7 +80,7 @@ AC_ARG_ENABLE([static-bin], ) AM_CONDITIONAL([STATIC], [test "x$static" = "xyes"]) -AC_ARG_ENABLE([debug], +AC_ARG_ENABLE([debug-build], [AC_HELP_STRING([--enable-debug],[Build debugging code in @<:@default=no@:>@])], [debugbuild=$enableval] ) diff --git a/lrzip_private.h b/lrzip_private.h index 8cde7bb..3e51443 100644 --- a/lrzip_private.h +++ b/lrzip_private.h @@ -117,13 +117,8 @@ extern char *sys_errlist[]; extern int errno; #endif -#ifdef DEBUG_BUILD #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) -#else -#define likely(x) (x)) {}; if (true -#define unlikely(x) (x)) {}; if (false -#endif #define __maybe_unused __attribute__((unused)) typedef long long int i64;