summaryrefslogtreecommitdiff
path: root/src/asmjs
diff options
context:
space:
mode:
Diffstat (limited to 'src/asmjs')
-rw-r--r--src/asmjs/shared-constants.cpp3
-rw-r--r--src/asmjs/shared-constants.h5
2 files changed, 3 insertions, 5 deletions
diff --git a/src/asmjs/shared-constants.cpp b/src/asmjs/shared-constants.cpp
index 2cb7d901c..20b148155 100644
--- a/src/asmjs/shared-constants.cpp
+++ b/src/asmjs/shared-constants.cpp
@@ -52,6 +52,7 @@ cashew::IString I32U_REM("i32u-rem");
cashew::IString ABS("abs");
cashew::IString FLOOR("floor");
cashew::IString CEIL("ceil");
+cashew::IString TRUNC("trunc");
cashew::IString SQRT("sqrt");
cashew::IString POW("pow");
cashew::IString I32_TEMP("asm2wasm_i32_temp");
@@ -86,8 +87,6 @@ cashew::IString WASM_FETCH_HIGH_BITS("__wasm_fetch_high_bits");
cashew::IString INT64_TO_32_HIGH_BITS("i64toi32_i32$HIGH_BITS");
cashew::IString WASM_NEAREST_F32("__wasm_nearest_f32");
cashew::IString WASM_NEAREST_F64("__wasm_nearest_f64");
-cashew::IString WASM_TRUNC_F32("__wasm_trunc_f32");
-cashew::IString WASM_TRUNC_F64("__wasm_trunc_f64");
cashew::IString WASM_I64_MUL("__wasm_i64_mul");
cashew::IString WASM_I64_SDIV("__wasm_i64_sdiv");
cashew::IString WASM_I64_UDIV("__wasm_i64_udiv");
diff --git a/src/asmjs/shared-constants.h b/src/asmjs/shared-constants.h
index d458db684..20edacb7e 100644
--- a/src/asmjs/shared-constants.h
+++ b/src/asmjs/shared-constants.h
@@ -55,6 +55,7 @@ extern cashew::IString I32U_REM;
extern cashew::IString ABS;
extern cashew::IString FLOOR;
extern cashew::IString CEIL;
+extern cashew::IString TRUNC;
extern cashew::IString SQRT;
extern cashew::IString POW;
extern cashew::IString I32_TEMP;
@@ -66,8 +67,8 @@ extern cashew::IString STACK_MAX;
extern cashew::IString INSTRUMENT;
extern cashew::IString MATH_IMUL;
extern cashew::IString MATH_ABS;
-extern cashew::IString MATH_CEIL;
extern cashew::IString MATH_CLZ32;
+extern cashew::IString MATH_CEIL;
extern cashew::IString MATH_FLOOR;
extern cashew::IString MATH_TRUNC;
extern cashew::IString MATH_SQRT;
@@ -89,8 +90,6 @@ extern cashew::IString WASM_FETCH_HIGH_BITS;
extern cashew::IString INT64_TO_32_HIGH_BITS;
extern cashew::IString WASM_NEAREST_F32;
extern cashew::IString WASM_NEAREST_F64;
-extern cashew::IString WASM_TRUNC_F32;
-extern cashew::IString WASM_TRUNC_F64;
extern cashew::IString WASM_I64_MUL;
extern cashew::IString WASM_I64_SDIV;
extern cashew::IString WASM_I64_UDIV;