File tree 3 files changed +2
-13
lines changed
3 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -1256,11 +1256,11 @@ let int32_mul ?comment
1256
1256
else
1257
1257
call ?comment
1258
1258
~info: Js_call_info. builtin_runtime_call
1259
- (runtime_var_dot Js_runtime_modules. int32 Literals. imul) [e1;e2]
1259
+ (dot (js_global " Math " ) Literals. imul) [e1;e2]
1260
1260
| _ ->
1261
1261
call ?comment
1262
1262
~info: Js_call_info. builtin_runtime_call
1263
- (runtime_var_dot Js_runtime_modules. int32 Literals. imul) [e1;e2]
1263
+ (dot (js_global " Math " ) Literals. imul) [e1;e2]
1264
1264
1265
1265
1266
1266
let unchecked_int32_mul ?comment e1 e2 : J.expression =
Original file line number Diff line number Diff line change @@ -37,11 +37,3 @@ let mod_ (x : nativeint) (y:nativeint) =
37
37
raise Division_by_zero
38
38
else Caml_nativeint_extern. rem x y
39
39
40
-
41
-
42
-
43
- (* -FIXME not polyfill any more in next release *)
44
- let imul : int32 -> int32 -> int32 = [% bs.raw{| Math. imul || function (x,y) {
45
- y |= 0 ; return ((((x >> 16 ) * y) << 16 ) + (x & 0xffff ) * y)| 0 ;
46
- }
47
- | }]
Original file line number Diff line number Diff line change @@ -29,6 +29,3 @@ val div : nativeint -> nativeint -> nativeint
29
29
val mod_ : nativeint -> nativeint -> nativeint
30
30
31
31
32
-
33
- val imul :int32 -> int32 -> int32
34
-
You can’t perform that action at this time.
0 commit comments