xref: /linux/tools/testing/selftests/powerpc/primitives/asm/asm-const.h (revision 8c994eff8fcfe8ecb1f1dbebed25b4d7bb75be12)
1 #ifndef _ASM_POWERPC_ASM_CONST_H
2 #define _ASM_POWERPC_ASM_CONST_H
3 
4 #ifdef __ASSEMBLY__
5 #  define stringify_in_c(...)	__VA_ARGS__
6 #  define ASM_CONST(x)		x
7 #else
8 /* This version of stringify will deal with commas... */
9 #  define __stringify_in_c(...)	#__VA_ARGS__
10 #  define stringify_in_c(...)	__stringify_in_c(__VA_ARGS__) " "
11 #  define __ASM_CONST(x)	x##UL
12 #  define ASM_CONST(x)		__ASM_CONST(x)
13 #endif
14 
15 #endif /* _ASM_POWERPC_ASM_CONST_H */
16