summaryrefslogtreecommitdiff
path: root/src/asmjs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-05-19 16:14:00 -0500
committerAlon Zakai <alonzakai@gmail.com>2018-05-19 14:14:00 -0700
commitd0ce93f8d7a08017618839498a9b920bbb132267 (patch)
tree752e836fcd09e37c6e7963622ac5d35aa2021d18 /src/asmjs
parentcb64ec3879db3422ac4afd3119938f8dfe7b7b05 (diff)
downloadbinaryen-d0ce93f8d7a08017618839498a9b920bbb132267.tar.gz
binaryen-d0ce93f8d7a08017618839498a9b920bbb132267.tar.bz2
binaryen-d0ce93f8d7a08017618839498a9b920bbb132267.zip
wasm2asm: Finish f32/f64 operations (#1554)
Diffstat (limited to 'src/asmjs')
-rw-r--r--src/asmjs/shared-constants.cpp7
-rw-r--r--src/asmjs/shared-constants.h7
2 files changed, 10 insertions, 4 deletions
diff --git a/src/asmjs/shared-constants.cpp b/src/asmjs/shared-constants.cpp
index bf956f173..87c3574de 100644
--- a/src/asmjs/shared-constants.cpp
+++ b/src/asmjs/shared-constants.cpp
@@ -74,7 +74,6 @@ cashew::IString GLOBAL("global"),
MATH_CLZ32("Math_clz32"),
MATH_FLOOR("Math_floor"),
MATH_TRUNC("Math_trunc"),
- MATH_NEAREST("Math_NEAREST"),
MATH_SQRT("Math_sqrt"),
MATH_MIN("Math_min"),
MATH_MAX("Math_max"),
@@ -91,5 +90,9 @@ cashew::IString GLOBAL("global"),
WASM_GROW_MEMORY("__wasm_grow_memory"),
WASM_CURRENT_MEMORY("__wasm_current_memory"),
WASM_FETCH_HIGH_BITS("__wasm_fetch_high_bits"),
- INT64_TO_32_HIGH_BITS("i64toi32_i32$HIGH_BITS");
+ INT64_TO_32_HIGH_BITS("i64toi32_i32$HIGH_BITS"),
+ WASM_NEAREST_F32("__wasm_nearest_f32"),
+ WASM_NEAREST_F64("__wasm_nearest_f64"),
+ WASM_TRUNC_F32("__wasm_trunc_f32"),
+ WASM_TRUNC_F64("__wasm_trunc_f64");
}
diff --git a/src/asmjs/shared-constants.h b/src/asmjs/shared-constants.h
index 973b5eb49..da2f7aad8 100644
--- a/src/asmjs/shared-constants.h
+++ b/src/asmjs/shared-constants.h
@@ -77,7 +77,6 @@ extern cashew::IString GLOBAL,
MATH_CLZ32,
MATH_FLOOR,
MATH_TRUNC,
- MATH_NEAREST,
MATH_SQRT,
MATH_MIN,
MATH_MAX,
@@ -94,7 +93,11 @@ extern cashew::IString GLOBAL,
WASM_GROW_MEMORY,
WASM_CURRENT_MEMORY,
WASM_FETCH_HIGH_BITS,
- INT64_TO_32_HIGH_BITS;
+ INT64_TO_32_HIGH_BITS,
+ WASM_NEAREST_F32,
+ WASM_NEAREST_F64,
+ WASM_TRUNC_F32,
+ WASM_TRUNC_F64;
}
#endif // wasm_asmjs_shared_constants_h