xref: /haiku/headers/private/system/computed_asm_macros.h (revision 922e7ba1f3228e6f28db69b0ded8f86eb32dea17)
1 /*
2  * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _SYSTEM_COMPUTED_ASM_MACROS_H
6 #define _SYSTEM_COMPUTED_ASM_MACROS_H
7 
8 
9 #define DEFINE_COMPUTED_ASM_MACRO(macro, value) \
10 	asm volatile("#define " #macro " %0" : : "i" (value))
11 
12 
13 #endif	/* _SYSTEM_COMPUTED_ASM_MACROS_H */
14