Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-01-06 08:25:24 +0300
committerDoug Evans <dje@google.com>2010-01-06 08:25:24 +0300
commit8c7d5f45eefe091659592f4f754cd6a7b9db3246 (patch)
treed076ac71055fec7b04f971daa2074f05d60d80ba /include/cgen
parent7fce58cbda7f66bb6e6080f004666b8f25c0fb84 (diff)
* basic-modes.h (MAKEDI): New macro.
Diffstat (limited to 'include/cgen')
-rw-r--r--include/cgen/ChangeLog4
-rw-r--r--include/cgen/basic-modes.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/include/cgen/ChangeLog b/include/cgen/ChangeLog
index b9da0e687..a8d5df9e6 100644
--- a/include/cgen/ChangeLog
+++ b/include/cgen/ChangeLog
@@ -1,3 +1,7 @@
+2010-01-05 Doug Evans <dje@sebabeach.org>
+
+ * basic-modes.h (MAKEDI): New macro.
+
2009-10-23 Doug Evans <dje@sebabeach.org>
* basic-modes.h: New file. Moved here from opcodes/cgen-types.h.
diff --git a/include/cgen/basic-modes.h b/include/cgen/basic-modes.h
index 7583ee458..bd87f3acb 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 */