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