add likely/unlikely branch hints
[IRC.git] / Robust / src / Runtime / runtime.h
index fca662c426c187f6fb8740ac54ce4666ee7be595..d3dcc04a1fd3d1680d1e926d3516a3f4e4219574 100644 (file)
@@ -25,6 +25,10 @@ extern int failurecount;
 extern void * curr_heapbase;
 extern void * curr_heaptop;
 
+#define likely(x) __builtin_expect((x),1)
+#define unlikely(x) __builtin_expect((x),0)
+
+
 #define TAGARRAYINTERVAL 10
 #define OBJECTARRAYINTERVAL 10