aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/common.h')
-rw-r--r--src/crypto/common.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/crypto/common.h b/src/crypto/common.h
index 18d986f429..42f72a6fa8 100644
--- a/src/crypto/common.h
+++ b/src/crypto/common.h
@@ -7,7 +7,6 @@
#include <compat/endian.h>
-#include <bit>
#include <cstdint>
#include <cstring>
@@ -83,10 +82,4 @@ void static inline WriteBE64(unsigned char* ptr, uint64_t x)
memcpy(ptr, &v, 8);
}
-/** Return the smallest number n such that (x >> n) == 0 (or 64 if the highest bit in x is set. */
-uint64_t static inline CountBits(uint64_t x)
-{
- return std::bit_width(x);
-}
-
#endif // BITCOIN_CRYPTO_COMMON_H