diff options
author | Doug Evans <dje@google.com> | 2010-01-06 05:25:24 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2010-01-06 05:25:24 +0000 |
commit | 3d0b6a1922901b34ab69e7d2be74b7e3ac1d2da9 (patch) | |
tree | d9bba01f8ff065d4f998d0d718cca6f73cd6880c | |
parent | 01903619f293c54a2b182d413ba408a3b19d3c2c (diff) | |
download | gdb-3d0b6a1922901b34ab69e7d2be74b7e3ac1d2da9.tar.gz |
* basic-modes.h (MAKEDI): New macro.
-rw-r--r-- | include/cgen/ChangeLog | 4 | ||||
-rw-r--r-- | include/cgen/basic-modes.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/cgen/ChangeLog b/include/cgen/ChangeLog index b9da0e687c7..a8d5df9e6c2 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 7583ee4586b..bd87f3acb06 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 */ |