summaryrefslogtreecommitdiff
path: root/libcr/coroutine.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcr/coroutine.c')
-rw-r--r--libcr/coroutine.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/libcr/coroutine.c b/libcr/coroutine.c
index 3435bbb..b4306d9 100644
--- a/libcr/coroutine.c
+++ b/libcr/coroutine.c
@@ -128,8 +128,15 @@
* no longer exists.
*/
-#define ALWAYS_INLINE [[gnu::always_inline]] inline
-#define NEVER_INLINE [[gnu::noinline]]
+/* preprocessor macros ********************************************************/
+
+/** Return `n` rounded up to the nearest multiple of `d` */
+#define ROUND_UP(n, d) ( ( ((n)+(d)-1) / (d) ) * (d) )
+#define ARRAY_LEN(arr) (sizeof(arr)/sizeof((arr)[0]))
+#define NEXT_POWER_OF_2(x) ((1ULL)<<((sizeof(unsigned long long)*8)-__builtin_clzll(x)))
+
+#define ALWAYS_INLINE [[gnu::always_inline]] inline
+#define NEVER_INLINE [[gnu::noinline]]
/* platform support ***********************************************************/
@@ -357,13 +364,6 @@
}
#endif
-/* preprocessor macros ********************************************************/
-
-/** Return `n` rounded up to the nearest multiple of `d` */
-#define ROUND_UP(n, d) ( ( ((n)+(d)-1) / (d) ) * (d) )
-#define ARRAY_LEN(arr) (sizeof(arr)/sizeof((arr)[0]))
-#define NEXT_POWER_OF_2(x) ((1ULL)<<((sizeof(unsigned long long)*8)-__builtin_clzll(x)))
-
/* types **********************************************************************/
enum coroutine_state {