search for: __mallocfunc

Displaying 1 result from an estimated 1 matches for "__mallocfunc".

Did you mean: __alloc_func
2006 Jun 20
1
[patch] compiler.h fix use of likely/unlikely
...eck for early 2.X gcc versions. Signed-off-by: maximilian attems <maks at sternwelten.at> diff --git a/usr/include/klibc/compiler.h b/usr/include/klibc/compiler.h index 893f8a9..b7d9b50 100644 --- a/usr/include/klibc/compiler.h +++ b/usr/include/klibc/compiler.h @@ -91,12 +91,12 @@ # define __mallocfunc #endif /* likely/unlikely */ -#if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)) -# define __likely(x) __builtin_expect((x), 1) -# define __unlikely(x) __builtin_expect((x), 0) +#if defined(__GNUC__) +# define likely(x) __builtin_expect(...