Add BITSWAP4 and BITSWAP12 for future use (nw)

This commit is contained in:
AJR 2017-12-11 02:43:32 -05:00
parent 05a9ab23c1
commit 6084751936

View File

@ -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...); }