From: Doug Evans Date: Wed, 6 Jan 2010 05:25:24 +0000 (+0000) Subject: * basic-modes.h (MAKEDI): New macro. X-Git-Tag: sid-snapshot-20100201~365 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c5b2b7a2509d8cdf94a59cbbb44c13cbe6c6183;p=platform%2Fupstream%2Fbinutils.git * basic-modes.h (MAKEDI): New macro. --- diff --git a/include/cgen/ChangeLog b/include/cgen/ChangeLog index b9da0e6..a8d5df9 100644 --- a/include/cgen/ChangeLog +++ b/include/cgen/ChangeLog @@ -1,3 +1,7 @@ +2010-01-05 Doug Evans + + * basic-modes.h (MAKEDI): New macro. + 2009-10-23 Doug Evans * 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 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 */