Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1bc2911

Browse files
committed
py/mpconfig.h: Define MP_ALWAYSINLINE for reuse.
Similar to existing MP_NOINLINE.
1 parentd2cab0b commit1bc2911

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
#defineMP_NOINLINE __attribute__((noinline))
10741074
#endif
10751075

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp