All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
likely.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_SCAL_META_LIKELY_HPP
#define STAN_MATH_PRIM_SCAL_META_LIKELY_HPP
#ifdef __GNUC__
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
#else
#define likely(x) (x)
#define unlikely(x) (x)
#endif
#endif

[ Stan Home Page ] © 2011–2015, Stan Development Team.