Browse Source

Add NORETURN macro

test
Andrew Waterman 5 years ago
parent
commit
2021fdb41f
  1. 6
      riscv/common.h

6
riscv/common.h

@ -6,11 +6,13 @@
#ifdef __GNUC__
# define likely(x) __builtin_expect(x, 1)
# define unlikely(x) __builtin_expect(x, 0)
# define NOINLINE __attribute__ ((noinline))
# define NORETURN __attribute__ ((noreturn))
#else
# define likely(x) (x)
# define unlikely(x) (x)
# define NOINLINE
# define NORETURN
#endif
#define NOINLINE __attribute__ ((noinline))
#endif

Loading…
Cancel
Save