1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-25 18:30:07 +00:00

Remove unused bit_count.

This commit is contained in:
Thomas Harte 2022-10-13 15:01:06 -04:00
parent 06dbb7167b
commit 0a9c392371

View File

@ -29,11 +29,6 @@ template <typename IntT> constexpr IntT top_bit() {
return max - (max >> 1);
}
/// @returns The number of bits in @c IntT.
template <typename IntT> constexpr int bit_count() {
return sizeof(IntT) * 8;
}
/// @returns An int with the top bit indicating whether overflow occurred when @c source and @c destination
/// were either added (if @c is_add is true) or subtracted (if @c is_add is false) and the result was @c result.
/// All other bits will be clear.