summaryrefslogtreecommitdiff
path: root/src/asmjs/shared-constants.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/asmjs/shared-constants.cpp')
-rw-r--r--src/asmjs/shared-constants.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/asmjs/shared-constants.cpp b/src/asmjs/shared-constants.cpp
index 7e153bada..b355fecb7 100644
--- a/src/asmjs/shared-constants.cpp
+++ b/src/asmjs/shared-constants.cpp
@@ -58,15 +58,20 @@ cashew::IString GLOBAL("global"),
ENV("env"),
INSTRUMENT("instrument"),
MATH_IMUL("Math_imul"),
- MATH_CLZ32("Math_clz32"),
- MATH_POPCNT32("Math_popcnt32"),
MATH_ABS("Math_abs"),
MATH_CEIL("Math_ceil"),
MATH_FLOOR("Math_floor"),
MATH_TRUNC("Math_trunc"),
MATH_NEAREST("Math_NEAREST"),
MATH_SQRT("Math_sqrt"),
- MATH_MIN("Math_max"),
- MATH_MAX("Math_min");
-
+ MATH_MIN("Math_min"),
+ MATH_MAX("Math_max"),
+ CTZ32("__wasm_ctz_i32"),
+ CTZ64("__wasm_ctz_i64"),
+ POPCNT32("__wasm_popcnt_i32"),
+ POPCNT64("__wasm_popcnt_i64"),
+ ROTL32("__wasm_rotl_i32"),
+ ROTL64("__wasm_rotl_i64"),
+ ROTR32("__wasm_rotr_i32"),
+ ROTR64("__wasm_rotr_i64");
}