Define EXTEND4() and EXTEND5().
This commit is contained in:
parent
5d71b4bc92
commit
93f967158f
|
@ -1,3 +1,8 @@
|
|||
Tue Apr 14 18:49:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
|
||||
|
||||
* sim-bits.h (EXTEND4): Define.
|
||||
(EXTEND4): Ditto.
|
||||
|
||||
Tue Apr 14 16:31:35 1998 John Metzler <jmetzler@cygnus.com>
|
||||
|
||||
* sim-memopt.c (parse_addr): Sunos 4.5 does not hane strtol
|
||||
|
|
|
@ -458,6 +458,8 @@ INLINE_SIM_BITS(unsigned_word) MSINSERTED (unsigned_word val, int start, int sto
|
|||
|
||||
/* Sign extend the quantity to the targets natural word size */
|
||||
|
||||
#define EXTEND4(X) (LSSEXT ((X), 3))
|
||||
#define EXTEND5(X) (LSSEXT ((X), 4))
|
||||
#define EXTEND8(X) ((signed_word)(signed8)(X))
|
||||
#define EXTEND16(X) ((signed_word)(signed16)(X))
|
||||
#define EXTEND32(X) ((signed_word)(signed32)(X))
|
||||
|
|
Loading…
Reference in New Issue