aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exec-all.h3
-rw-r--r--target-alpha/cpu.h4
-rw-r--r--target-ppc/cpu.h4
3 files changed, 3 insertions, 8 deletions
diff --git a/exec-all.h b/exec-all.h
index 434605d8d1..39cb536adc 100644
--- a/exec-all.h
+++ b/exec-all.h
@@ -32,6 +32,9 @@
#define __builtin_expect(x, n) (x)
#endif
+#define likely(x) __builtin_expect(!!(x), 1)
+#define unlikely(x) __builtin_expect(!!(x), 0)
+
#ifdef __i386__
#define REGPARM(n) __attribute((regparm(n)))
#else
diff --git a/target-alpha/cpu.h b/target-alpha/cpu.h
index b219ad38b0..3f517e67b6 100644
--- a/target-alpha/cpu.h
+++ b/target-alpha/cpu.h
@@ -32,10 +32,6 @@
#include "softfloat.h"
-/* XXX: put this in a common place */
-#define likely(x) __builtin_expect(!!(x), 1)
-#define unlikely(x) __builtin_expect(!!(x), 0)
-
#define TARGET_HAS_ICE 1
#define ELF_MACHINE EM_ALPHA
diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h
index f36c979244..3ca22e57b9 100644
--- a/target-ppc/cpu.h
+++ b/target-ppc/cpu.h
@@ -88,10 +88,6 @@ typedef uint32_t ppc_gpr_t;
#define ICACHE_LINE_SIZE 32
#define DCACHE_LINE_SIZE 32
-/* XXX: put this in a common place */
-#define likely(x) __builtin_expect(!!(x), 1)
-#define unlikely(x) __builtin_expect(!!(x), 0)
-
/*****************************************************************************/
/* PVR definitions for most known PowerPC */
enum {