From d7b666ecf47f7f5269ad5b7f826bca98f7350746 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Tue, 7 Jul 2009 18:15:50 -0700 Subject: Remove branch prediction hints. They seem to hurt more than help. --- upb.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'upb.h') diff --git a/upb.h b/upb.h index eecdba0..64f2c54 100644 --- a/upb.h +++ b/upb.h @@ -18,15 +18,6 @@ extern "C" { #endif -/* Branch prediction hints for GCC. */ -#ifdef __GNUC__ -#define likely(x) __builtin_expect((x),1) -#define unlikely(x) __builtin_expect((x),0) -#else -#define likely(x) (x) -#define unlikely(x) (x) -#endif - /* inline if possible, emit standalone code if required. */ #ifndef INLINE #define INLINE static inline -- cgit v1.2.3