#ifndef ORYX_COMMON_H #define ORYX_COMMON_H #ifdef __GNUC__ # define likely(x) __builtin_expect(!!(x), 1) # define unlikely(x) __builtin_expect(!!(x), 0) #else # include # define __attribute__(x) # define __builtin_unreachable() abort() # define likely(x) (x) # define unlikely(x) (x) #endif /* Make printf() always available in debug builds */ #ifdef DEBUG # include #endif #endif /* !ORYX_COMMON_H */