Skip to content

Commit

Permalink
Revert "Bypass most checks performed via the inbuilt expect macros li…
Browse files Browse the repository at this point in the history
…kely and unlikely for non-debug builds."

This reverts commit 3a1d097.

Did not offer any substantial speedup.
  • Loading branch information
ckolivas committed Mar 7, 2012
1 parent 3a1d097 commit 43402d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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]
)
Expand Down
5 changes: 0 additions & 5 deletions lrzip_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 43402d1

Please sign in to comment.