Improve the reliability of the kernel likely and unlikely macros.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-01-18 15:42:06 +01:00
parent e91cde379a
commit 640465320f
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@
typedef uintptr_t addr_t;
#define likely(x) __builtin_expect((x),1)
#define unlikely(x) __builtin_expect((x),0)
#define likely(x) __builtin_expect(!!(x),1)
#define unlikely(x) __builtin_expect(!!(x),0)
#if !defined(CPU) && defined(__i386__)
#define CPU X86