From 0f5bf1aafe0ca073d958f271bd96addc6da8fe10 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 15 Jun 2016 23:52:00 +0300 Subject: py/mpconfig.h: MP_NOINLINE is universally useful, move from unix port. --- py/mpconfig.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'py') diff --git a/py/mpconfig.h b/py/mpconfig.h index 084fc246f..25aac8b7e 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -1031,6 +1031,11 @@ typedef double mp_float_t; #define MP_WEAK __attribute__((weak)) #endif +// Modifier for functions which should be never inlined +#ifndef MP_NOINLINE +#define MP_NOINLINE __attribute__((noinline)) +#endif + // Condition is likely to be true, to help branch prediction #ifndef MP_LIKELY #define MP_LIKELY(x) __builtin_expect((x), 1) -- cgit v1.2.3