OSDN Git Service

* basic-modes.h (MAKEDI): New macro.
authordevans <devans>
Wed, 6 Jan 2010 14:25:24 +0000 (14:25 +0000)
committerdevans <devans>
Wed, 6 Jan 2010 14:25:24 +0000 (14:25 +0000)
include/cgen/ChangeLog
include/cgen/basic-modes.h

index b9da0e6..a8d5df9 100644 (file)
@@ -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.
index 7583ee4..bd87f3a 100644 (file)
@@ -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 */