hmbdc
simplify-high-performance-messaging-programming
Compile.hpp
1 #include "hmbdc/Copyright.hpp"
2 #pragma once
3 
4 #ifndef hmbdc_likely
5 #define hmbdc_likely(x) __builtin_expect(!!(x),1)
6 #endif
7 
8 #ifndef hmbdc_unlikely
9 #define hmbdc_unlikely(x) __builtin_expect(!!(x),0)
10 #endif
11 
12 #ifndef HMBDC_RESTRICT
13 #ifdef __clang__
14 #define HMBDC_RESTRICT
15 #else
16 #define HMBDC_RESTRICT __restrict__
17 #endif
18 #endif