Skip to content

Commit f234fdb

Browse files
authored
Wasm backend clean-up (#2109)
* Avoid duplications between modules Typing and Generate It's much less error-prone if all the information about each primitive is in a single place. * Make the primitive registration more compact * No longer handle primitive caml_round_float especially * Improved implementation of signbit
1 parent c2426e7 commit f234fdb

File tree

6 files changed

+411
-887
lines changed

6 files changed

+411
-887
lines changed

compiler/lib-wasm/gc_target.ml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,11 +1397,6 @@ module Math = struct
13971397

13981398
let fmod f g = binary "fmod" f g
13991399

1400-
let round x =
1401-
let* f = register_import ~name:"caml_round" (Fun (float_func_type 1)) in
1402-
let* x = x in
1403-
return (W.Call (f, [ x ]))
1404-
14051400
let exp2 x = power (return (W.Const (F64 2.))) x
14061401
end
14071402

0 commit comments

Comments
 (0)