Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

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

Lines changed: 5 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy