summaryrefslogtreecommitdiff
path: root/src/interpreter.cc
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2017-09-06 22:24:10 -0700
committerGitHub <noreply@github.com>2017-09-06 22:24:10 -0700
commit4a37785fd5a6fe8c65a814e77289194616a2696a (patch)
tree924318ffa0d6d25ffd3d1a6e6ccc1608141bb8cd /src/interpreter.cc
parent12e96a6e7b1941f0944f1f74734537bb517b6133 (diff)
downloadwabt-4a37785fd5a6fe8c65a814e77289194616a2696a.tar.gz
wabt-4a37785fd5a6fe8c65a814e77289194616a2696a.tar.bz2
wabt-4a37785fd5a6fe8c65a814e77289194616a2696a.zip
Move LEB128 stuff to its own file (#612)
Also rename some of the functions.
Diffstat (limited to 'src/interpreter.cc')
-rw-r--r--src/interpreter.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/interpreter.cc b/src/interpreter.cc
index 4a8bb3c4..3ea17a71 100644
--- a/src/interpreter.cc
+++ b/src/interpreter.cc
@@ -214,14 +214,6 @@ void Thread::CopyResults(const FuncSignature* sig,
out_results->emplace_back(sig->result_types[i], value_stack_[i]);
}
-template <typename Dst, typename Src>
-Dst Bitcast(Src value) {
- static_assert(sizeof(Src) == sizeof(Dst), "Bitcast sizes must match.");
- Dst result;
- memcpy(&result, &value, sizeof(result));
- return result;
-}
-
uint32_t ToRep(bool x) { return x ? 1 : 0; }
uint32_t ToRep(uint32_t x) { return x; }
uint64_t ToRep(uint64_t x) { return x; }