Updates to Freedom SoCs
[freedom-sifive.git] / bootrom / sdboot / include / const.h
1 // See LICENSE for license details.
2 /* Derived from <linux/const.h> */
3
4 #ifndef _SIFIVE_CONST_H
5 #define _SIFIVE_CONST_H
6
7 #ifdef __ASSEMBLER__
8 #define _AC(X,Y) X
9 #define _AT(T,X) X
10 #else
11 #define _AC(X,Y) (X##Y)
12 #define _AT(T,X) ((T)(X))
13 #endif /* !__ASSEMBLER__*/
14
15 #define _BITUL(x) (_AC(1,UL) << (x))
16 #define _BITULL(x) (_AC(1,ULL) << (x))
17
18 #endif /* _SIFIVE_CONST_H */