aboutsummaryrefslogtreecommitdiff
path: root/riscv/common.h
blob: d593df230e1a4ea71a2fdb7adceaeefee8689fb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// See LICENSE for license details.

#ifndef _RISCV_COMMON_H
#define _RISCV_COMMON_H

#ifdef __GNUC__
# define   likely(x) __builtin_expect(x, 1)
# define unlikely(x) __builtin_expect(x, 0)
#else
# define   likely(x) (x)
# define unlikely(x) (x)
#endif

#define NOINLINE __attribute__ ((noinline))

#endif