Commit 1bc29111 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

py/mpconfig.h: Define MP_ALWAYSINLINE for reuse.

Similar to existing MP_NOINLINE.
parent d2cab0b7
...@@ -1073,6 +1073,11 @@ typedef double mp_float_t; ...@@ -1073,6 +1073,11 @@ typedef double mp_float_t;
#define MP_NOINLINE __attribute__((noinline)) #define MP_NOINLINE __attribute__((noinline))
#endif #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 // Condition is likely to be true, to help branch prediction
#ifndef MP_LIKELY #ifndef MP_LIKELY
#define MP_LIKELY(x) __builtin_expect((x), 1) #define MP_LIKELY(x) __builtin_expect((x), 1)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment