summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-12-11 02:43:32 -0500
committer AJR <ajrhacker@users.noreply.github.com>2017-12-11 02:43:32 -0500
commit60847519361ca7dbd2b10ee584cb07d5732bc51f (patch)
tree6db7dd95e368bc6ebc0591370b646df4db0a867e
parent05a9ab23c139b9137993d4fe5bb16e00065dfed8 (diff)
Add BITSWAP4 and BITSWAP12 for future use (nw)
-rw-r--r--src/emu/emucore.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emu/emucore.h b/src/emu/emucore.h
index 1782ac8726d..212bf31c849 100644
--- a/src/emu/emucore.h
+++ b/src/emu/emucore.h
@@ -263,7 +263,9 @@ template <unsigned B, typename T, typename... U> T bitswap(T val, U... b)
}
// explicit versions that check number of bit position arguments
+template <typename T, typename... U> constexpr T BITSWAP4(T val, U... b) { return bitswap<4U>(val, b...); }
template <typename T, typename... U> constexpr T BITSWAP8(T val, U... b) { return bitswap<8U>(val, b...); }
+template <typename T, typename... U> constexpr T BITSWAP12(T val, U... b) { return bitswap<12U>(val, b...); }
template <typename T, typename... U> constexpr T BITSWAP16(T val, U... b) { return bitswap<16U>(val, b...); }
template <typename T, typename... U> constexpr T BITSWAP24(T val, U... b) { return bitswap<24U>(val, b...); }
template <typename T, typename... U> constexpr T BITSWAP32(T val, U... b) { return bitswap<32U>(val, b...); }