Debian Codegraph @

src/include/common.hpp

raw symbols SCIP
1 #pragma once
2
3 #ifndef COMMON_HPP
4 #define COMMON_HPP
5
6 #ifndef likely
7 #define likely(x) __builtin_expect(!!(x), 1)
8 #define unlikely(x) __builtin_expect(!!(x), 0)
9 #endif
10
11 #define ATTRIBUTE_NEVER_INLINE __attribute__((noinline))
12 #define ATTRIBUTE_ALWAYS_INLINE __attribute__((always_inline))
13 #define ATTRIBUTE_HIDDEN __attribute__((visibility("hidden")))
14 #define ATTRIBUTE_EXPORT __attribute__((visibility("default")))
15 #define ATTRIBUTE_ALIGNED(s) __attribute__((aligned(s)))
16 #define CACHELINE_SIZE 64
17 #define CACHELINE_ALIGNED ATTRIBUTE_ALIGNED(CACHELINE_SIZE)
18 #define CACHELINE_ALIGNED_FN CACHELINE_ALIGNED
19
20 #define USE_COMPRESSED_PTRS 0
21 #define USE_SIZE_CACHES 0 // 1
22
23 #endif