summaryrefslogtreecommitdiff
path: root/src/support/bits.cpp
diff options
context:
space:
mode:
authorMax Graey <maxgraey@gmail.com>2021-11-23 07:03:25 +0200
committerGitHub <noreply@github.com>2021-11-22 21:03:25 -0800
commit7f24fce21a92f2aed4a11745d27d5181798ba6cd (patch)
tree80655dc933e3c2ae3ae53b7960cd71a6a022c3da /src/support/bits.cpp
parent37999167bb333dd0b12d744af8e633897e65cff8 (diff)
downloadbinaryen-7f24fce21a92f2aed4a11745d27d5181798ba6cd.tar.gz
binaryen-7f24fce21a92f2aed4a11745d27d5181798ba6cd.tar.bz2
binaryen-7f24fce21a92f2aed4a11745d27d5181798ba6cd.zip
Modernize code to C++17 (#3104)
Diffstat (limited to 'src/support/bits.cpp')
-rw-r--r--src/support/bits.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/support/bits.cpp b/src/support/bits.cpp
index 749e6fb54..aa24edadb 100644
--- a/src/support/bits.cpp
+++ b/src/support/bits.cpp
@@ -22,9 +22,7 @@
#include <intrin.h>
#endif
-namespace wasm {
-
-namespace Bits {
+namespace wasm::Bits {
int popCount(uint8_t v) {
// Small table lookup.
@@ -198,6 +196,4 @@ uint32_t log2(uint32_t v) {
uint32_t pow2(uint32_t v) { return v < 32 ? 1 << v : 0; }
-} // namespace Bits
-
-} // namespace wasm
+} // namespace wasm::Bits