summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorlizhengxing <unixhaha@gmail.com>2017-12-25 14:05:24 -0800
committerBen Smith <binjimin@gmail.com>2017-12-25 14:05:24 -0800
commite59f0aaf6b404d13f9ca7b48a21475b0df662a8f (patch)
tree461b9ce7c45fa00e021927fd259e27f29436c2f4 /src/common.h
parentf835db8cfb418bb19dd61a10dbe49e1131b664bc (diff)
downloadwabt-e59f0aaf6b404d13f9ca7b48a21475b0df662a8f.tar.gz
wabt-e59f0aaf6b404d13f9ca7b48a21475b0df662a8f.tar.bz2
wabt-e59f0aaf6b404d13f9ca7b48a21475b0df662a8f.zip
SIMD: i8x16.splat instruction implementation. (#704)
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h
index 33b2696c..4b0b0e4d 100644
--- a/src/common.h
+++ b/src/common.h
@@ -105,7 +105,7 @@ static const Index kInvalidIndex = ~0;
static const Offset kInvalidOffset = ~0;
template <typename Dst, typename Src>
-Dst Bitcast(Src value) {
+Dst Bitcast(Src&& value) {
static_assert(sizeof(Src) == sizeof(Dst), "Bitcast sizes must match.");
Dst result;
memcpy(&result, &value, sizeof(result));