Stan
2.5.0
probability, sampling & optimization
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
stan
meta
likely.hpp
Go to the documentation of this file.
1
#ifndef STAN__META__LIKELY_HPP
2
#define STAN__META__LIKELY_HPP
3
4
#ifdef __GNUC__
5
#define likely(x) __builtin_expect(!!(x), 1)
6
#define unlikely(x) __builtin_expect(!!(x), 0)
7
#else
8
#define likely(x) (x)
9
#define unlikely(x) (x)
10
#endif
11
12
#endif
[
Stan Home Page
]
© 2011–2014, Stan Development Team.