diff options
author | Peter Maydell | 2013-06-28 13:40:31 +0200 |
---|---|---|
committer | Anthony Liguori | 2013-07-22 22:41:11 +0200 |
commit | 2dc6bebde93677b262caff114849d0f5ebdaa82d (patch) | |
tree | a38c249fcd1c3d3c02da43066f13e5660e049e9a /MAINTAINERS | |
parent | memory: Fix zero-sized memory region print (diff) | |
download | qemu-2dc6bebde93677b262caff114849d0f5ebdaa82d.tar.gz qemu-2dc6bebde93677b262caff114849d0f5ebdaa82d.tar.xz qemu-2dc6bebde93677b262caff114849d0f5ebdaa82d.zip |
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>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions