aboutsummaryrefslogtreecommitdiff
path: root/include/cgen/basic-modes.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cgen/basic-modes.h')
-rw-r--r--include/cgen/basic-modes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cgen/basic-modes.h b/include/cgen/basic-modes.h
index 7583ee4..bd87f3a 100644
--- a/include/cgen/basic-modes.h
+++ b/include/cgen/basic-modes.h
@@ -46,4 +46,7 @@ typedef uint64_t UDI;
typedef int INT;
typedef unsigned int UINT;
+/* Cover macro to create a 64-bit integer. */
+#define MAKEDI(hi, lo) ((((DI) (SI) (hi)) << 32) | ((UDI) (USI) (lo)))
+
#endif /* CGEN_BASIC_MODES_H */