From 26cc319274f9f7e99a56d55c3fd0872e2e2527a1 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 26 Sep 2006 13:52:53 +0200 Subject: Add unlikely macro And use it for a really unlikely case --- inotail.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'inotail.h') diff --git a/inotail.h b/inotail.h index d885855..f6e90e8 100644 --- a/inotail.h +++ b/inotail.h @@ -24,4 +24,7 @@ struct file_struct { # define dprintf(fmt, args...) #endif /* DEBUG */ +/* Taken from linux kernel source tree */ +#define unlikely(x) __builtin_expect(!!(x), 0) + #endif /* _INOTAIL_H */ -- cgit v1.2.3-54-g00ecf