projects
/
IRC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add likely/unlikely branch hints
[IRC.git]
/
Robust
/
src
/
Runtime
/
runtime.h
diff --git
a/Robust/src/Runtime/runtime.h
b/Robust/src/Runtime/runtime.h
index fca662c426c187f6fb8740ac54ce4666ee7be595..d3dcc04a1fd3d1680d1e926d3516a3f4e4219574 100644
(file)
--- a/
Robust/src/Runtime/runtime.h
+++ b/
Robust/src/Runtime/runtime.h
@@
-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