@@ -945,31 +945,31 @@ impl<'a> VisitOperator<'a> for FuncTranslator {
945
945
}
946
946
947
947
fn visit_f32_abs ( & mut self ) -> Self :: Output {
948
- todo ! ( )
948
+ self . translate_unary :: < f32 , f32 > ( Instruction :: f32_abs , wasm :: f32_abs )
949
949
}
950
950
951
951
fn visit_f32_neg ( & mut self ) -> Self :: Output {
952
- todo ! ( )
952
+ self . translate_unary :: < f32 , f32 > ( Instruction :: f32_neg , wasm :: f32_neg )
953
953
}
954
954
955
955
fn visit_f32_ceil ( & mut self ) -> Self :: Output {
956
- todo ! ( )
956
+ self . translate_unary :: < f32 , f32 > ( Instruction :: f32_ceil , wasm :: f32_ceil )
957
957
}
958
958
959
959
fn visit_f32_floor ( & mut self ) -> Self :: Output {
960
- todo ! ( )
960
+ self . translate_unary :: < f32 , f32 > ( Instruction :: f32_floor , wasm :: f32_floor )
961
961
}
962
962
963
963
fn visit_f32_trunc ( & mut self ) -> Self :: Output {
964
- todo ! ( )
964
+ self . translate_unary :: < f32 , f32 > ( Instruction :: f32_trunc , wasm :: f32_trunc )
965
965
}
966
966
967
967
fn visit_f32_nearest ( & mut self ) -> Self :: Output {
968
- todo ! ( )
968
+ self . translate_unary :: < f32 , f32 > ( Instruction :: f32_nearest , wasm :: f32_nearest )
969
969
}
970
970
971
971
fn visit_f32_sqrt ( & mut self ) -> Self :: Output {
972
- todo ! ( )
972
+ self . translate_unary :: < f32 , f32 > ( Instruction :: f32_sqrt , wasm :: f32_sqrt )
973
973
}
974
974
975
975
fn visit_f32_add ( & mut self ) -> Self :: Output {
@@ -1001,31 +1001,31 @@ impl<'a> VisitOperator<'a> for FuncTranslator {
1001
1001
}
1002
1002
1003
1003
fn visit_f64_abs ( & mut self ) -> Self :: Output {
1004
- todo ! ( )
1004
+ self . translate_unary :: < f64 , f64 > ( Instruction :: f64_abs , wasm :: f64_abs )
1005
1005
}
1006
1006
1007
1007
fn visit_f64_neg ( & mut self ) -> Self :: Output {
1008
- todo ! ( )
1008
+ self . translate_unary :: < f64 , f64 > ( Instruction :: f64_neg , wasm :: f64_neg )
1009
1009
}
1010
1010
1011
1011
fn visit_f64_ceil ( & mut self ) -> Self :: Output {
1012
- todo ! ( )
1012
+ self . translate_unary :: < f64 , f64 > ( Instruction :: f64_ceil , wasm :: f64_ceil )
1013
1013
}
1014
1014
1015
1015
fn visit_f64_floor ( & mut self ) -> Self :: Output {
1016
- todo ! ( )
1016
+ self . translate_unary :: < f64 , f64 > ( Instruction :: f64_floor , wasm :: f64_floor )
1017
1017
}
1018
1018
1019
1019
fn visit_f64_trunc ( & mut self ) -> Self :: Output {
1020
- todo ! ( )
1020
+ self . translate_unary :: < f64 , f64 > ( Instruction :: f64_trunc , wasm :: f64_trunc )
1021
1021
}
1022
1022
1023
1023
fn visit_f64_nearest ( & mut self ) -> Self :: Output {
1024
- todo ! ( )
1024
+ self . translate_unary :: < f64 , f64 > ( Instruction :: f64_nearest , wasm :: f64_nearest )
1025
1025
}
1026
1026
1027
1027
fn visit_f64_sqrt ( & mut self ) -> Self :: Output {
1028
- todo ! ( )
1028
+ self . translate_unary :: < f64 , f64 > ( Instruction :: f64_sqrt , wasm :: f64_sqrt )
1029
1029
}
1030
1030
1031
1031
fn visit_f64_add ( & mut self ) -> Self :: Output {
0 commit comments