Procházet zdrojové kódy

silly me, thats not going to work.

Eric Andersen před 21 roky
rodič
revize
85a056b071
1 změnil soubory, kde provedl 2 přidání a 3 odebrání
  1. 2 3
      include/features.h

+ 2 - 3
include/features.h

@@ -421,9 +421,8 @@ uClibc was built without large file support enabled.
 #if __GNUC__ == 2 && __GNUC_MINOR__ < 96
 #define __builtin_expect(x, expected_value) (x)
 #endif
-
-#define likely(x)		__builtin_expect(!((int)(x)),0)
-#define unlikely(x)		__builtin_expect(((int)(x)),0)
+#define likely(x)      __builtin_expect((!!(x)),1)
+#define unlikely(x)    __builtin_expect((x),0)
 
 /* --- this is added to integrate linuxthreads */
 #define __USE_UNIX98            1