1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

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

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