From 33f573b7371b3a1345f367285a7ccc7c0a750392 Mon Sep 17 00:00:00 2001 From: John Mesmon Date: Wed, 14 Oct 2009 02:07:37 -0400 Subject: [PATCH] common: Add (un)likely macros --- common/common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/common.h b/common/common.h index aa7a0b9..0c6f684 100644 --- a/common/common.h +++ b/common/common.h @@ -6,6 +6,9 @@ #include "clock.h" +#define likely(x) __builtin_expect((x),1) +#define unlikely(x) __builtin_expect((x),0) + #define DDR(x) _DDR(x) #define _DDR(x) DDR##x #define PORT(x) _PORT(x) -- 2.11.4.GIT