File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ module Generate (Target : Target_sig.S) = struct
111
111
; " caml_ba_uint8_set64" , (`Mutator , [ Value ; Int ; Int64 ], Value )
112
112
; " caml_nextafter_float" , (`Pure , [ Float ; Float ], Float )
113
113
; " caml_classify_float" , (`Pure , [ Float ], Value )
114
- ; " caml_ldexp_float" , (`Pure , [ Float ; Value ], Float )
114
+ ; " caml_ldexp_float" , (`Pure , [ Float ; Int ], Float )
115
115
; " caml_erf_float" , (`Pure , [ Float ], Float )
116
116
; " caml_erfc_float" , (`Pure , [ Float ], Float )
117
117
; " caml_float_compare" , (`Pure , [ Float ; Float ], Int )
Original file line number Diff line number Diff line change 717
717
(array.new_fixed $block 3 (ref.i31 (i32.const 0 ))
718
718
(struct.new $float (local.get $f )) (struct.new $float (local.get $i ))))
719
719
720
- (func $ldexp (param $x f64 ) (param $n i32 ) (result f64 )
720
+ (func $ldexp (export " caml_ldexp_float" )
721
+ (param $x f64 ) (param $n i32 ) (result f64 )
721
722
(if (i32.gt_s (local.get $n ) (i32.const 1023 ))
722
723
(then
723
724
(local.set $x (f64.mul (local.get $x ) (f64.const 0x1p1023 )))
747
748
(i64.const 0x3ff ))
748
749
(i64.const 52 )))))
749
750
750
- (func (export " caml_ldexp_float" )
751
- (param $x f64 ) (param $i (ref eq)) (result f64 )
752
- (call $ldexp
753
- (local.get $x )
754
- (i31.get_s (ref.cast (ref i31) (local.get $i )))))
755
-
756
751
(func $frexp (param $x f64 ) (result f64 i32 )
757
752
(local $y i64 )
758
753
(local $e i32 )
You can’t perform that action at this time.
0 commit comments