mirror of
https://github.com/holub/mame
synced 2025-06-04 11:56:28 +03:00
Revert "Add BITSWAP4 and BITSWAP12 for future use (nw)"
This reverts commit 6084751936
.
This is pointless pollution of the global namespace when you can call
bitswap<4>(...) or bitswap<12>(...) directly. The existing BITSWAP8,
BITSWAP16, etc. were just kept for compatibility with code written
before we had variadic templates available.
This commit is contained in:
parent
353ea7ea71
commit
b0a9c20788
@ -263,9 +263,7 @@ 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...); }
|
||||
|
Loading…
Reference in New Issue
Block a user