 |
Project
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
15#ifndef O2_FRAMEWORK_COMPILER_BUILTINS_H_
16#define O2_FRAMEWORK_COMPILER_BUILTINS_H_
18#define O2_BUILTIN_UNREACHABLE __builtin_unreachable
20#define O2_BUILTIN_UNREACHABLE __builtin_unreachable
22#define O2_BUILTIN_UNREACHABLE
26#define O2_BUILTIN_LIKELY(x) __builtin_expect((x), 1)
27#define O2_BUILTIN_UNLIKELY(x) __builtin_expect((x), 0)
29#define O2_BUILTIN_LIKELY(x) __builtin_expect((x), 1)
30#define O2_BUILTIN_UNLIKELY(x) __builtin_expect((x), 0)
32#define O2_BUILTIN_LIKELY(x) (x)
33#define O2_BUILTIN_UNLIKELY(x) (x)
37#define O2_BUILTIN_PREFETCH(x, ...) __builtin_prefetch((x), __VA_ARGS__)
39#define O2_BUILTIN_PREFETCH(x, ...) __builtin_prefetch((x), __VA_ARGS__)
41#define O2_BUILTIN_PREFETCH(x, ...)
45#define O2_VISIBILITY_HIDDEN __attribute__((visibility("hidden")))
47#define O2_VISIBILITY_HIDDEN __attribute__((visibility("hidden")))
49#define O2_VISIBILITY_HIDDEN