We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0d07d5 commit f9f0dc0Copy full SHA for f9f0dc0
stan/math/prim/meta/compiler_attributes.hpp
@@ -4,21 +4,11 @@
4
#ifdef __GNUC__
5
#define likely(x) __builtin_expect(!!(x), 1)
6
#define unlikely(x) __builtin_expect(!!(x), 0)
7
-#define STAN_ALWAYS_INLINE __attribute__((always_inline))
8
-#define STAN_STRONG_INLINE inline STAN_ALWAYS_INLINE
9
-#define STAN_FLATTEN __attribute__((flatten))
10
-#define STAN_STRONGER_INLINE inline __attribute__((always_inline, flatten))
11
#define STAN_COLD_PATH __attribute__((noinline, cold))
12
-#define STAN_HOT_PATH __attribute__((hot))
13
#else
14
#define likely(x) (x)
15
#define unlikely(x) (x)
16
-#define STAN_ALWAYS_INLINE
17
-#define STAN_STRONG_INLINE inline
18
-#define STAN_FLATTEN
19
-#define STAN_STRONGER_INLINE
20
#define STAN_COLD_PATH
21
-#define STAN_HOT_PATH
22
#endif
23
24
0 commit comments