diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2012-07-06 15:48:00 +0100 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-07-07 09:07:01 +0000 |
commit | 84988cf910a6881f2180fdcec516b60f8f0dc8c4 (patch) | |
tree | 8c7267aa5e548bdf657ce080e912ec05a69b8a94 /net/slirp.c | |
parent | bedc2ac1a746e61e2a42c98603922c488b82cddb (diff) |
bitops.h: Add functions to extract and deposit bitfields
Add functions deposit32(), deposit64(), extract32() and extract64()
to extract and deposit bitfields in 32 and 64 bit words. Based on
ideas by Jia Liu and Avi Kivity.
Suggested-by: Jia Liu <proljc@gmail.com>
Suggested-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'net/slirp.c')
0 files changed, 0 insertions, 0 deletions