diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-04-15 00:06:50 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-04-15 00:06:50 +0000 |
commit | 93f967158fdb53e468173f0a4947b3dd06442983 (patch) | |
tree | 8c9d3d73392d6f269e3fb96892d13762d8f0ad95 /sim/common | |
parent | 5d71b4bc9296819788df62797ab2399f02e22c64 (diff) | |
download | gdb-93f967158fdb53e468173f0a4947b3dd06442983.zip gdb-93f967158fdb53e468173f0a4947b3dd06442983.tar.gz gdb-93f967158fdb53e468173f0a4947b3dd06442983.tar.bz2 |
Define EXTEND4() and EXTEND5().
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/ChangeLog | 5 | ||||
-rw-r--r-- | sim/common/sim-bits.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index f589416..a026ab1 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -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 diff --git a/sim/common/sim-bits.h b/sim/common/sim-bits.h index 1433c4c..96147e4 100644 --- a/sim/common/sim-bits.h +++ b/sim/common/sim-bits.h @@ -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)) |