Loading...
Searching...
No Matches
Go to the documentation of this file. 1#ifndef INCLUDE_RICCATI_MACROS_HPP
2#define INCLUDE_RICCATI_MACROS_HPP
13#define likely(x) __builtin_expect(!!(x), 1)
17#define unlikely(x) __builtin_expect(!!(x), 0)
21#if __has_attribute(noinline) && __has_attribute(cold)
22#ifndef RICCATI_COLD_PATH
28#define RICCATI_COLD_PATH __attribute__((noinline, cold))
33#ifndef RICCATI_COLD_PATH
34#define RICCATI_COLD_PATH
36#ifndef RICCATI_NO_INLINE
37#define RICCATI_NO_INLINE __attribute__((noinline))
40#ifndef RICCATI_ALWAYS_INLINE
41#define RICCATI_ALWAYS_INLINE __attribute__((always_inline)) inline
49#define RICCATI_PURE __attribute__((pure))
54#define unlikely(x) (x)
55#define RICCATI_COLD_PATH
56#define RICCATI_NO_INLINE
57#define RICCATI_ALWAYS_INLINE inline