summaryrefslogtreecommitdiff
path: root/src/literal.cc
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2017-10-25 09:37:31 -0700
committerGitHub <noreply@github.com>2017-10-25 09:37:31 -0700
commit2adfb2bf04c1fd47a5a556779f76c799cf15e5a5 (patch)
treea657e64d489cb6f484c2b54117bc9c2be7c9826e /src/literal.cc
parent7ddd13efacf89d2c68844bb1784944c4b0a945b7 (diff)
downloadwabt-2adfb2bf04c1fd47a5a556779f76c799cf15e5a5.tar.gz
wabt-2adfb2bf04c1fd47a5a556779f76c799cf15e5a5.tar.bz2
wabt-2adfb2bf04c1fd47a5a556779f76c799cf15e5a5.zip
Rename the counting builtins (clz/ctz/popcount) (#660)
Put them in the `wabt` namespace and follow the normal naming convention (MixedCase). More importantly, these are now defined for all inputs, instead of using `__builtin_c[tl]z*` directly which are undefined for 0.
Diffstat (limited to 'src/literal.cc')
-rw-r--r--src/literal.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/literal.cc b/src/literal.cc
index 7476abef..f63c358f 100644
--- a/src/literal.cc
+++ b/src/literal.cc
@@ -26,14 +26,6 @@ namespace wabt {
namespace {
-int Clz(uint32_t value) {
- return value == 0 ? 32 : wabt_clz_u32(value);
-}
-
-int Clz(uint64_t value) {
- return value == 0 ? 64 : wabt_clz_u64(value);
-}
-
template <typename T>
struct FloatTraitsBase {};