From df2d946238e80e2b3ef6b198301b3947e28646dd Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 16 Nov 2015 17:55:42 -0800 Subject: emit a special call to a special import to handle floating-point remainder, which exists in asm.js but not in wasm --- src/js/post.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/js/post.js') diff --git a/src/js/post.js b/src/js/post.js index 45d850f10..6406674ba 100644 --- a/src/js/post.js +++ b/src/js/post.js @@ -28,6 +28,11 @@ var info = wasmJS['info'] = { global: null, env: null, + asm2wasm: { // special asm2wasm imports + "f64-rem": function(x, y) { + return x % y; + }, + }, parent: Module // Module inside wasm-js.cpp refers to wasm-js.cpp; this allows access to the outside program. }; -- cgit v1.2.3