const.h 409 B

123456789101112131415161718
  1. // See LICENSE for license details.
  2. /* Derived from <linux/const.h> */
  3. #ifndef _SIFIVE_CONST_H
  4. #define _SIFIVE_CONST_H
  5. #ifdef __ASSEMBLER__
  6. #define _AC(X,Y) X
  7. #define _AT(T,X) X
  8. #else
  9. #define _AC(X,Y) (X##Y)
  10. #define _AT(T,X) ((T)(X))
  11. #endif /* !__ASSEMBLER__*/
  12. #define _BITUL(x) (_AC(1,UL) << (x))
  13. #define _BITULL(x) (_AC(1,ULL) << (x))
  14. #endif /* _SIFIVE_CONST_H */