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 | 8c7d5f45eefe091659592f4f754cd6a7b9db3246 (patch) | |
tree | d076ac71055fec7b04f971daa2074f05d60d80ba /include/cgen/basic-modes.h | |
parent | 7fce58cbda7f66bb6e6080f004666b8f25c0fb84 (diff) | |
download | newlib-8c7d5f45eefe091659592f4f754cd6a7b9db3246.zip newlib-8c7d5f45eefe091659592f4f754cd6a7b9db3246.tar.gz newlib-8c7d5f45eefe091659592f4f754cd6a7b9db3246.tar.bz2 |
* basic-modes.h (MAKEDI): New macro.
Diffstat (limited to 'include/cgen/basic-modes.h')
-rw-r--r-- | include/cgen/basic-modes.h | 3 |
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 */ |