aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2023-10-29 19:00:59 -0500
committerDenis Kenzior <denkenz@gmail.com>2023-10-29 19:01:16 -0500
commita11b48eacf2ced1b408cd70fc72f41a4e9ffc122 (patch)
treecc8e9ec5b5c6b6138b246ee474b806c2d6a9c8b5
parenteb139e23abf35ec8bf922fc640aa1292826225a3 (diff)
useful: Add __always_inline
-rw-r--r--ell/useful.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ell/useful.h b/ell/useful.h
index 991edc3b..5a4a5eba 100644
--- a/ell/useful.h
+++ b/ell/useful.h
@@ -18,6 +18,10 @@
#define SWAP(l, r) \
do { typeof(l) __tmp = (l); (l) = (r); (r) = __tmp; } while (0)
+#ifndef __always_inline
+#define __always_inline inline __attribute__((always_inline))
+#endif
+
static inline size_t minsize(size_t a, size_t b)
{
if (a <= b)