Peter Maydell 2dc6bebde9 bitops: Provide sextract32() and sextract64()
A common operation in instruction decoding is to take a field
from an instruction that represents a signed integer in some
arbitrary number of bits, and sign extend it into a C signed
integer type for manipulation. Provide new functions sextract32()
and sextract64() which perform this operation; they are like
the existing extract32() and extract64() except that the field
is sign-extended into the returned result.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Message-id: 1372419632-5521-2-git-send-email-peter.maydell@linaro.org
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-07-22 15:41:11 -05:00
..
2013-04-19 11:28:22 +02:00
2013-05-18 16:35:12 +04:00
2013-07-10 13:42:09 -04:00
2013-03-01 13:53:10 +01:00
2013-02-16 11:11:34 +00:00
2013-07-02 08:17:01 +02:00
2013-07-04 10:40:56 +03:00
2012-11-30 11:33:24 +01:00
2013-04-25 14:45:46 -05:00