commit | caab8c4ef372db5c119bfac1911fa27b174a935c | [log] [tgz] |
---|---|---|
author | Ian Rogers <irogers@google.com> | Wed Oct 12 12:11:18 2011 -0700 |
committer | Ian Rogers <irogers@google.com> | Wed Oct 12 18:12:21 2011 -0700 |
tree | 375a1e284b123b91d4960aa674b223e1eea0583a | |
parent | 14b1b249bdd21d674c9371dee34f8ae055f73ba2 [diff] [blame] |
Various tidy ups, add LIKELY/UNLIKELY macros. Make more aggressive use of the dex cache when we have it. Change-Id: I125a7bac031f7f0cec68194b5380bdfd83c92833
diff --git a/src/macros.h b/src/macros.h index 9c5124b..f016f9e 100644 --- a/src/macros.h +++ b/src/macros.h
@@ -125,4 +125,7 @@ #define PACKED __attribute__ ((__packed__)) +#define LIKELY(x) __builtin_expect((x),true) +#define UNLIKELY(x) __builtin_expect((x),false) + #endif // ART_SRC_MACROS_H_