OGLplus
(0.59.0)
a C++ wrapper for rendering APIs
eagine
branch_predict.hpp
Go to the documentation of this file.
1
#ifndef EAGINE_BRANCH_PREDICT_HPP
9
#define EAGINE_BRANCH_PREDICT_HPP
10
11
#if defined __GNUC__
12
#define EAGINE_LIKELY(EXPR) __builtin_expect(!!(EXPR), 1)
13
#else
14
#define EAGINE_LIKELY(EXPR) (!!(EXPR))
15
#endif
16
17
#if defined __GNUC__
18
#define EAGINE_UNLIKELY(EXPR) __builtin_expect(!!(EXPR), 0)
19
#else
20
#define EAGINE_UNLIKELY(EXPR) (!!(EXPR))
21
#endif
22
23
#endif // EAGINE_BRANCH_PREDICT_HPP
Copyright © 2015-2021
Matúš Chochlík
.
<
chochlik -at -gmail.com
>
Documentation generated on Tue Apr 13 2021 by
Doxygen
(version 1.8.17).