bitops: Add MAKE_64BIT_MASK macro
commitae2923b5c20a21c6457680330506a9c13873485c
authorAlistair Francis <alistair.francis@xilinx.com>
Mon, 4 Jul 2016 12:06:36 +0000 (4 13:06 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Jul 2016 12:15:22 +0000 (4 13:15 +0100)
tree4f8a8e5e6cd6dde4a72a048395f0f9cabc452424
parent5d636e21c44ecf982a22a7bc4ca89186079ac283
bitops: Add MAKE_64BIT_MASK macro

Add a macro that creates a 64bit value which has length number of ones
shifted across by the value of shift.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 9773244aa1c8c26b8b82cb261d8f5dd4b7b9fcf9.1467053537.git.alistair.francis@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
include/qemu/bitops.h