mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Revert "Bypass most checks performed via the inbuilt expect macros likely and unlikely for non-debug builds."
This reverts commit 3a1d097830.
Did not offer any substantial speedup.
This commit is contained in:
parent
3a1d097830
commit
43402d1c76
|
|
@ -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]
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue