aboutsummaryrefslogtreecommitdiff
path: root/riscv/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/common.h')
-rw-r--r--riscv/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/riscv/common.h b/riscv/common.h
index 002a83f..a354ced 100644
--- a/riscv/common.h
+++ b/riscv/common.h
@@ -8,11 +8,15 @@
# define unlikely(x) __builtin_expect(x, 0)
# define NOINLINE __attribute__ ((noinline))
# define NORETURN __attribute__ ((noreturn))
+# define ALWAYS_INLINE __attribute__ ((always_inline))
+# define UNUSED __attribute__ ((unused))
#else
# define likely(x) (x)
# define unlikely(x) (x)
# define NOINLINE
# define NORETURN
+# define ALWAYS_INLINE
+# define UNUSED
#endif
#endif