Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1bc2911

Browse files
committed
py/mpconfig.h: Define MP_ALWAYSINLINE for reuse.
Similar to existing MP_NOINLINE.
1 parent d2cab0b commit 1bc2911

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

py/mpconfig.h

+5
Original file line numberDiff line numberDiff line change
@@ -1073,6 +1073,11 @@ typedef double mp_float_t;
10731073
#define MP_NOINLINE __attribute__((noinline))
10741074
#endif
10751075

1076+
// Modifier for functions which should be always inlined
1077+
#ifndef MP_ALWAYSINLINE
1078+
#define MP_ALWAYSINLINE __attribute__((always_inline))
1079+
#endif
1080+
10761081
// Condition is likely to be true, to help branch prediction
10771082
#ifndef MP_LIKELY
10781083
#define MP_LIKELY(x) __builtin_expect((x), 1)

0 commit comments

Comments
 (0)