Go to the documentation of this file.
18 #ifndef SURICATA_UTIL_OPTIMIZE_H
19 #define SURICATA_UTIL_OPTIMIZE_H
32 #define likely(expr) __builtin_expect(!!(expr), 1)
35 #define unlikely(expr) __builtin_expect(!!(expr), 0)
43 #define cc_barrier() __asm__ __volatile__("": : :"memory")
49 #define hw_barrier() __sync_synchronize()