diff options
author | Ben Smith <binjimin@gmail.com> | 2017-09-06 22:24:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-06 22:24:10 -0700 |
commit | 4a37785fd5a6fe8c65a814e77289194616a2696a (patch) | |
tree | 924318ffa0d6d25ffd3d1a6e6ccc1608141bb8cd /src/interpreter.cc | |
parent | 12e96a6e7b1941f0944f1f74734537bb517b6133 (diff) | |
download | wabt-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.cc | 8 |
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; } |