1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-13 22:32:03 +00:00

Eliminate trailing whitespace, fix tabs.

This commit is contained in:
Thomas Harte 2023-05-12 14:03:38 -04:00
parent 56de9c418f
commit 60bec3d4c0
7 changed files with 15 additions and 15 deletions

View File

@ -19,7 +19,7 @@ template <typename IntT> constexpr IntT bit_reverse(IntT source);
// The single-byte specialisation uses a lookup table.
template<> constexpr uint8_t bit_reverse<uint8_t>(uint8_t source) {
struct ReverseTable {
struct ReverseTable {
static constexpr std::array<uint8_t, 256> reverse_table() {
std::array<uint8_t, 256> map{};
for(std::size_t c = 0; c < 256; ++c) {
@ -36,7 +36,7 @@ template<> constexpr uint8_t bit_reverse<uint8_t>(uint8_t source) {
}
return map;
}
};
};
const std::array<uint8_t, 256> map = ReverseTable::reverse_table();
return map[source];