From 689ca6b29a135b8eaa206d790f4a01562fbe5fe4 Mon Sep 17 00:00:00 2001 From: Daniel Wirtz Date: Mon, 14 May 2018 20:51:35 +0200 Subject: wasm2asm: Add math aliases for floor, ceil and sqrt (#1549) --- src/wasm2asm.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/wasm2asm.h b/src/wasm2asm.h index ea8fd8142..357896654 100644 --- a/src/wasm2asm.h +++ b/src/wasm2asm.h @@ -475,6 +475,9 @@ void Wasm2AsmBuilder::addBasics(Ref ast) { addMath(MATH_CLZ32, CLZ32); addMath(MATH_MIN, MIN); addMath(MATH_MAX, MAX); + addMath(MATH_FLOOR, FLOOR); + addMath(MATH_CEIL, CEIL); + addMath(MATH_SQRT, SQRT); } void Wasm2AsmBuilder::addImport(Ref ast, Import* import) { -- cgit v1.2.3