[CRIU] [RFC 1/5] headers: Add const.h header
Cyrill Gorcunov
gorcunov at openvz.org
Sun May 26 17:12:38 EDT 2013
Same as linux kernel has -- to reuse
constants in assembly code.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
include/const.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 include/const.h
diff --git a/include/const.h b/include/const.h
new file mode 100644
index 0000000..a488bdb
--- /dev/null
+++ b/include/const.h
@@ -0,0 +1,13 @@
+#ifndef __CR_CONST_H__
+#define __CR_CONST_H__
+
+#ifdef __ASSEMBLY__
+# define _AC(X,Y) X
+# define _AT(T,X) X
+#else
+# define __AC(X,Y) (X##Y)
+# define _AC(X,Y) __AC(X,Y)
+# define _AT(T,X) ((T)(X))
+#endif
+
+#endif /* __CR_CONST_H__ */
--
1.8.1.4
More information about the CRIU
mailing list