From 1bc2911174aa975bbcb15cd70dd2dabfc7c8c535 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 7 Aug 2016 22:36:05 +0300 Subject: [PATCH] py/mpconfig.h: Define MP_ALWAYSINLINE for reuse. Similar to existing MP_NOINLINE. --- py/mpconfig.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/py/mpconfig.h b/py/mpconfig.h index 45e7a80ef5..3808df7430 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -1073,6 +1073,11 @@ typedef double mp_float_t; #define MP_NOINLINE __attribute__((noinline)) #endif +// Modifier for functions which should be always inlined +#ifndef MP_ALWAYSINLINE +#define MP_ALWAYSINLINE __attribute__((always_inline)) +#endif + // Condition is likely to be true, to help branch prediction #ifndef MP_LIKELY #define MP_LIKELY(x) __builtin_expect((x), 1)