diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2019-09-24 16:57:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-24 16:57:57 -0700 |
commit | ed2c3cd0892be8a1380a6c6bfddfa3492c16f91c (patch) | |
tree | 32e5f1499f69caa359c130c92e1d28153e7506d3 /src/emscripten-optimizer | |
parent | 034ed383a968204427befda3f9fb8bb5d2f63f75 (diff) | |
download | binaryen-ed2c3cd0892be8a1380a6c6bfddfa3492c16f91c.tar.gz binaryen-ed2c3cd0892be8a1380a6c6bfddfa3492c16f91c.tar.bz2 binaryen-ed2c3cd0892be8a1380a6c6bfddfa3492c16f91c.zip |
SIMD load and extend instructions (#2353)
Adds support for the new load and extend instructions. Also updates
from C++11 to C++17 in order to use generic lambdas in the interpreter
implementation.
Diffstat (limited to 'src/emscripten-optimizer')
-rw-r--r-- | src/emscripten-optimizer/istring.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/emscripten-optimizer/istring.h b/src/emscripten-optimizer/istring.h index 21f94fcb9..ccb08bf4b 100644 --- a/src/emscripten-optimizer/istring.h +++ b/src/emscripten-optimizer/istring.h @@ -161,16 +161,13 @@ struct IString { namespace std { -template<> -struct hash<cashew::IString> : public unary_function<cashew::IString, size_t> { +template<> struct hash<cashew::IString> { size_t operator()(const cashew::IString& str) const { return std::hash<size_t>{}(size_t(str.str)); } }; -template<> -struct equal_to<cashew::IString> - : public binary_function<cashew::IString, cashew::IString, bool> { +template<> struct equal_to<cashew::IString> { bool operator()(const cashew::IString& x, const cashew::IString& y) const { return x == y; } |