Don't move EBDA while an optionrom is running (CONFIG_THREAD_OPTIONROMS).
[seabios.git] / src / types.h
index 5da299d929c4efc0c414f4d1c695644c481ff7aa..e0133589640ac2140fa0f394f9c98443aa09e818 100644 (file)
@@ -114,6 +114,9 @@ extern void __force_link_error__only_in_16bit(void) __noreturn;
         const typeof( ((type *)0)->member ) *__mptr = (ptr);    \
         (type *)( (char *)__mptr - offsetof(type,member) );})
 
+#define likely(x)       __builtin_expect(!!(x), 1)
+#define unlikely(x)     __builtin_expect(!!(x), 0)
+
 #define NULL ((void*)0)
 
 #define __weak __attribute__((weak))