py/mpconfig.h: Define MP_ALWAYSINLINE for reuse.

Similar to existing MP_NOINLINE.
This commit is contained in:
Paul Sokolovsky 2016-08-07 22:36:05 +03:00
parent d2cab0b7be
commit 1bc2911174
1 changed files with 5 additions and 0 deletions

View File

@ -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)