diff options
author | 2016-08-16 18:07:34 +1000 | |
---|---|---|
committer | 2016-08-16 18:07:34 +1000 | |
commit | 9e3f53356d10a7d8b5920949e3446fc7e55d7c31 (patch) | |
tree | c395abc63d0acef0f6aa94e14c5503aad3a58883 | |
parent | 9121d7434434e423c84198e3f49d7bade238fefd (diff) |
Fix a comment
-rw-r--r-- | src/emu/emucore.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/emucore.h b/src/emu/emucore.h index c5d618d4355..de317bb2a89 100644 --- a/src/emu/emucore.h +++ b/src/emu/emucore.h @@ -254,7 +254,7 @@ template <typename T, typename U, typename... V> constexpr T bitswap(T val, U b, return (BIT(val, b) << sizeof...(c)) | bitswap(val, c...); } -// legacy names for backwards compatibility +// explicit versions that check number of bit position arguments template <typename T, typename... U> constexpr T BITSWAP8(T val, U... b) { static_assert(sizeof...(b) == 8U, "wrong number of bits"); return bitswap(val, b...); } template <typename T, typename... U> constexpr T BITSWAP16(T val, U... b) { static_assert(sizeof...(b) == 16U, "wrong number of bits"); return bitswap(val, b...); } template <typename T, typename... U> constexpr T BITSWAP24(T val, U... b) { static_assert(sizeof...(b) == 24U, "wrong number of bits"); return bitswap(val, b...); } |