#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
