summaryrefslogtreecommitdiff
path: root/upb.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-07-07 18:15:50 -0700
committerJoshua Haberman <joshua@reverberate.org>2009-07-07 18:15:50 -0700
commitd7b666ecf47f7f5269ad5b7f826bca98f7350746 (patch)
tree19cefff0725898a24da9db6f55f1a4cc7d2903cf /upb.h
parent9c88385ba4b369c440a467d19fa656389f9212e5 (diff)
Remove branch prediction hints. They seem to hurt more than help.
Diffstat (limited to 'upb.h')
-rw-r--r--upb.h9
1 files changed, 0 insertions, 9 deletions
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
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback