multi-die-cpp.h 535 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0+ OR MIT
  2. *
  3. * C preprocessor macros for t600x multi die support.
  4. */
  5. #ifndef __DTS_APPLE_MULTI_DIE_CPP_H
  6. #define __DTS_APPLE_MULTI_DIE_CPP_H
  7. #ifndef __stringify
  8. #define __stringify_1(x...) #x
  9. #define __stringify(x...) __stringify_1(x)
  10. #endif
  11. #ifndef __concat
  12. #define __concat_1(x, y...) x ## y
  13. #define __concat(x, y...) __concat_1(x, y)
  14. #endif
  15. #define DIE_NODE(a) __concat(a, DIE)
  16. #define DIE_LABEL(a) __stringify(__concat(a, DIE))
  17. #endif /* !__DTS_APPLE_MULTI_DIE_CPP_H */