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/sim-bits.h | |
parent | 5d71b4bc9296819788df62797ab2399f02e22c64 (diff) | |
download | gdb-93f967158fdb53e468173f0a4947b3dd06442983.zip gdb-93f967158fdb53e468173f0a4947b3dd06442983.tar.gz gdb-93f967158fdb53e468173f0a4947b3dd06442983.tar.bz2 |
Define EXTEND4() and EXTEND5().
Diffstat (limited to 'sim/common/sim-bits.h')
-rw-r--r-- | sim/common/sim-bits.h | 2 |
1 files changed, 2 insertions, 0 deletions
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)) |