| Stan Math Library 2.6.3 probability, sampling & optimization

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
likely.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_META_LIKELY_HPP
2 #define STAN_MATH_PRIM_SCAL_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–2015, Stan Development Team.