@@ -923,142 +923,142 @@ impl UntypedVal {
923
923
924
924
/// Execute `f32.abs` Wasm operation.
925
925
pub fn f32_abs ( self ) -> Self {
926
- self . execute_unary ( <F32 as Float < F32 > >:: abs)
926
+ self . execute_unary ( <f32 as Float >:: abs)
927
927
}
928
928
929
929
/// Execute `f32.neg` Wasm operation.
930
930
pub fn f32_neg ( self ) -> Self {
931
- self . execute_unary ( <F32 as Neg >:: neg)
931
+ self . execute_unary ( <f32 as Neg >:: neg)
932
932
}
933
933
934
934
/// Execute `f32.ceil` Wasm operation.
935
935
pub fn f32_ceil ( self ) -> Self {
936
- self . execute_unary ( <F32 as Float < F32 > >:: ceil)
936
+ self . execute_unary ( <f32 as Float >:: ceil)
937
937
}
938
938
939
939
/// Execute `f32.floor` Wasm operation.
940
940
pub fn f32_floor ( self ) -> Self {
941
- self . execute_unary ( <F32 as Float < F32 > >:: floor)
941
+ self . execute_unary ( <f32 as Float >:: floor)
942
942
}
943
943
944
944
/// Execute `f32.trunc` Wasm operation.
945
945
pub fn f32_trunc ( self ) -> Self {
946
- self . execute_unary ( <F32 as Float < F32 > >:: trunc)
946
+ self . execute_unary ( <f32 as Float >:: trunc)
947
947
}
948
948
949
949
/// Execute `f32.nearest` Wasm operation.
950
950
pub fn f32_nearest ( self ) -> Self {
951
- self . execute_unary ( <F32 as Float < F32 > >:: nearest)
951
+ self . execute_unary ( <f32 as Float >:: nearest)
952
952
}
953
953
954
954
/// Execute `f32.sqrt` Wasm operation.
955
955
pub fn f32_sqrt ( self ) -> Self {
956
- self . execute_unary ( <F32 as Float < F32 > >:: sqrt)
957
- }
958
-
959
- /// Execute `f32.min` Wasm operation.
960
- pub fn f32_min ( self , other : Self ) -> Self {
961
- self . execute_binary ( other, <F32 as Float < F32 > >:: min)
962
- }
963
-
964
- /// Execute `f32.max` Wasm operation.
965
- pub fn f32_max ( self , other : Self ) -> Self {
966
- self . execute_binary ( other, <F32 as Float < F32 > >:: max)
967
- }
968
-
969
- /// Execute `f32.copysign` Wasm operation.
970
- pub fn f32_copysign ( self , other : Self ) -> Self {
971
- self . execute_binary ( other, <F32 as Float < F32 > >:: copysign)
956
+ self . execute_unary ( <f32 as Float >:: sqrt)
972
957
}
973
958
974
959
/// Execute `f64.abs` Wasm operation.
975
960
pub fn f64_abs ( self ) -> Self {
976
- self . execute_unary ( <F64 as Float < F64 > >:: abs)
961
+ self . execute_unary ( <f64 as Float >:: abs)
977
962
}
978
963
979
964
/// Execute `f64.neg` Wasm operation.
980
965
pub fn f64_neg ( self ) -> Self {
981
- self . execute_unary ( <F64 as Neg >:: neg)
966
+ self . execute_unary ( <f64 as Neg >:: neg)
982
967
}
983
968
984
969
/// Execute `f64.ceil` Wasm operation.
985
970
pub fn f64_ceil ( self ) -> Self {
986
- self . execute_unary ( <F64 as Float < F64 > >:: ceil)
971
+ self . execute_unary ( <f64 as Float >:: ceil)
987
972
}
988
973
989
974
/// Execute `f64.floor` Wasm operation.
990
975
pub fn f64_floor ( self ) -> Self {
991
- self . execute_unary ( <F64 as Float < F64 > >:: floor)
976
+ self . execute_unary ( <f64 as Float >:: floor)
992
977
}
993
978
994
979
/// Execute `f64.trunc` Wasm operation.
995
980
pub fn f64_trunc ( self ) -> Self {
996
- self . execute_unary ( <F64 as Float < F64 > >:: trunc)
981
+ self . execute_unary ( <f64 as Float >:: trunc)
997
982
}
998
983
999
984
/// Execute `f64.nearest` Wasm operation.
1000
985
pub fn f64_nearest ( self ) -> Self {
1001
- self . execute_unary ( <F64 as Float < F64 > >:: nearest)
986
+ self . execute_unary ( <f64 as Float >:: nearest)
1002
987
}
1003
988
1004
989
/// Execute `f64.sqrt` Wasm operation.
1005
990
pub fn f64_sqrt ( self ) -> Self {
1006
- self . execute_unary ( <F64 as Float < F64 > >:: sqrt)
991
+ self . execute_unary ( <f64 as Float >:: sqrt)
1007
992
}
1008
993
1009
994
/// Execute `f32.add` Wasm operation.
1010
995
pub fn f32_add ( self , rhs : Self ) -> Self {
1011
- self . execute_binary ( rhs, <F32 as ArithmeticOps < F32 > >:: add)
996
+ self . execute_binary ( rhs, <f32 as ArithmeticOps >:: add)
1012
997
}
1013
998
1014
999
/// Execute `f64.add` Wasm operation.
1015
1000
pub fn f64_add ( self , rhs : Self ) -> Self {
1016
- self . execute_binary ( rhs, <F64 as ArithmeticOps < F64 > >:: add)
1001
+ self . execute_binary ( rhs, <f64 as ArithmeticOps >:: add)
1017
1002
}
1018
1003
1019
1004
/// Execute `f32.sub` Wasm operation.
1020
1005
pub fn f32_sub ( self , rhs : Self ) -> Self {
1021
- self . execute_binary ( rhs, <F32 as ArithmeticOps < F32 > >:: sub)
1006
+ self . execute_binary ( rhs, <f32 as ArithmeticOps >:: sub)
1022
1007
}
1023
1008
1024
1009
/// Execute `f64.sub` Wasm operation.
1025
1010
pub fn f64_sub ( self , rhs : Self ) -> Self {
1026
- self . execute_binary ( rhs, <F64 as ArithmeticOps < F64 > >:: sub)
1011
+ self . execute_binary ( rhs, <f64 as ArithmeticOps >:: sub)
1027
1012
}
1028
1013
1029
1014
/// Execute `f32.mul` Wasm operation.
1030
1015
pub fn f32_mul ( self , rhs : Self ) -> Self {
1031
- self . execute_binary ( rhs, <F32 as ArithmeticOps < F32 > >:: mul)
1016
+ self . execute_binary ( rhs, <f32 as ArithmeticOps >:: mul)
1032
1017
}
1033
1018
1034
1019
/// Execute `f64.mul` Wasm operation.
1035
1020
pub fn f64_mul ( self , rhs : Self ) -> Self {
1036
- self . execute_binary ( rhs, <F64 as ArithmeticOps < F64 > >:: mul)
1021
+ self . execute_binary ( rhs, <f64 as ArithmeticOps >:: mul)
1037
1022
}
1038
1023
1039
1024
/// Execute `f32.div` Wasm operation.
1040
1025
pub fn f32_div ( self , rhs : Self ) -> Self {
1041
- self . execute_binary ( rhs, <F32 as Float < F32 > >:: div)
1026
+ self . execute_binary ( rhs, <f32 as Float >:: div)
1042
1027
}
1043
1028
1044
1029
/// Execute `f64.div` Wasm operation.
1045
1030
pub fn f64_div ( self , rhs : Self ) -> Self {
1046
- self . execute_binary ( rhs, <F64 as Float < F64 > >:: div)
1031
+ self . execute_binary ( rhs, <f64 as Float >:: div)
1032
+ }
1033
+
1034
+ /// Execute `f32.min` Wasm operation.
1035
+ pub fn f32_min ( self , other : Self ) -> Self {
1036
+ self . execute_binary ( other, <f32 as Float >:: min)
1047
1037
}
1048
1038
1049
1039
/// Execute `f64.min` Wasm operation.
1050
1040
pub fn f64_min ( self , other : Self ) -> Self {
1051
- self . execute_binary ( other, <F64 as Float < F64 > >:: min)
1041
+ self . execute_binary ( other, <f64 as Float >:: min)
1042
+ }
1043
+
1044
+ /// Execute `f32.max` Wasm operation.
1045
+ pub fn f32_max ( self , other : Self ) -> Self {
1046
+ self . execute_binary ( other, <f32 as Float >:: max)
1052
1047
}
1053
1048
1054
1049
/// Execute `f64.max` Wasm operation.
1055
1050
pub fn f64_max ( self , other : Self ) -> Self {
1056
- self . execute_binary ( other, <F64 as Float < F64 > >:: max)
1051
+ self . execute_binary ( other, <f64 as Float >:: max)
1052
+ }
1053
+
1054
+ /// Execute `f32.copysign` Wasm operation.
1055
+ pub fn f32_copysign ( self , other : Self ) -> Self {
1056
+ self . execute_binary ( other, <f32 as Float >:: copysign)
1057
1057
}
1058
1058
1059
1059
/// Execute `f64.copysign` Wasm operation.
1060
1060
pub fn f64_copysign ( self , other : Self ) -> Self {
1061
- self . execute_binary ( other, <F64 as Float < F64 > >:: copysign)
1061
+ self . execute_binary ( other, <f64 as Float >:: copysign)
1062
1062
}
1063
1063
1064
1064
/// Execute `i32.wrap_i64` Wasm operation.
@@ -1079,7 +1079,7 @@ impl UntypedVal {
1079
1079
/// [WebAssembly specification]:
1080
1080
/// https://webassembly.github.io/spec/core/exec/numerics.html#op-trunc-s
1081
1081
pub fn i32_trunc_f32_s ( self ) -> Result < Self , TrapCode > {
1082
- self . try_execute_unary ( <F32 as TryTruncateInto < i32 , TrapCode > >:: try_truncate_into)
1082
+ self . try_execute_unary ( <f32 as TryTruncateInto < i32 , TrapCode > >:: try_truncate_into)
1083
1083
}
1084
1084
1085
1085
/// Execute `i32.trunc_f32_u` Wasm operation.
@@ -1095,7 +1095,7 @@ impl UntypedVal {
1095
1095
/// [WebAssembly specification]:
1096
1096
/// https://webassembly.github.io/spec/core/exec/numerics.html#op-trunc-s
1097
1097
pub fn i32_trunc_f32_u ( self ) -> Result < Self , TrapCode > {
1098
- self . try_execute_unary ( <F32 as TryTruncateInto < u32 , TrapCode > >:: try_truncate_into)
1098
+ self . try_execute_unary ( <f32 as TryTruncateInto < u32 , TrapCode > >:: try_truncate_into)
1099
1099
}
1100
1100
1101
1101
/// Execute `i32.trunc_f64_s` Wasm operation.
@@ -1111,7 +1111,7 @@ impl UntypedVal {
1111
1111
/// [WebAssembly specification]:
1112
1112
/// https://webassembly.github.io/spec/core/exec/numerics.html#op-trunc-s
1113
1113
pub fn i32_trunc_f64_s ( self ) -> Result < Self , TrapCode > {
1114
- self . try_execute_unary ( <F64 as TryTruncateInto < i32 , TrapCode > >:: try_truncate_into)
1114
+ self . try_execute_unary ( <f64 as TryTruncateInto < i32 , TrapCode > >:: try_truncate_into)
1115
1115
}
1116
1116
1117
1117
/// Execute `i32.trunc_f64_u` Wasm operation.
@@ -1127,7 +1127,7 @@ impl UntypedVal {
1127
1127
/// [WebAssembly specification]:
1128
1128
/// https://webassembly.github.io/spec/core/exec/numerics.html#op-trunc-s
1129
1129
pub fn i32_trunc_f64_u ( self ) -> Result < Self , TrapCode > {
1130
- self . try_execute_unary ( <F64 as TryTruncateInto < u32 , TrapCode > >:: try_truncate_into)
1130
+ self . try_execute_unary ( <f64 as TryTruncateInto < u32 , TrapCode > >:: try_truncate_into)
1131
1131
}
1132
1132
1133
1133
/// Execute `i64.extend_i32_s` Wasm operation.
@@ -1148,7 +1148,7 @@ impl UntypedVal {
1148
1148
/// [WebAssembly specification]:
1149
1149
/// https://webassembly.github.io/spec/core/exec/numerics.html#op-trunc-s
1150
1150
pub fn i64_trunc_f32_s ( self ) -> Result < Self , TrapCode > {
1151
- self . try_execute_unary ( <F32 as TryTruncateInto < i64 , TrapCode > >:: try_truncate_into)
1151
+ self . try_execute_unary ( <f32 as TryTruncateInto < i64 , TrapCode > >:: try_truncate_into)
1152
1152
}
1153
1153
1154
1154
/// Execute `i64.trunc_f32_u` Wasm operation.
@@ -1164,7 +1164,7 @@ impl UntypedVal {
1164
1164
/// [WebAssembly specification]:
1165
1165
/// https://webassembly.github.io/spec/core/exec/numerics.html#op-trunc-s
1166
1166
pub fn i64_trunc_f32_u ( self ) -> Result < Self , TrapCode > {
1167
- self . try_execute_unary ( <F32 as TryTruncateInto < u64 , TrapCode > >:: try_truncate_into)
1167
+ self . try_execute_unary ( <f32 as TryTruncateInto < u64 , TrapCode > >:: try_truncate_into)
1168
1168
}
1169
1169
1170
1170
/// Execute `i64.trunc_f64_s` Wasm operation.
@@ -1180,7 +1180,7 @@ impl UntypedVal {
1180
1180
/// [WebAssembly specification]:
1181
1181
/// https://webassembly.github.io/spec/core/exec/numerics.html#op-trunc-s
1182
1182
pub fn i64_trunc_f64_s ( self ) -> Result < Self , TrapCode > {
1183
- self . try_execute_unary ( <F64 as TryTruncateInto < i64 , TrapCode > >:: try_truncate_into)
1183
+ self . try_execute_unary ( <f64 as TryTruncateInto < i64 , TrapCode > >:: try_truncate_into)
1184
1184
}
1185
1185
1186
1186
/// Execute `i64.trunc_f64_u` Wasm operation.
@@ -1196,7 +1196,7 @@ impl UntypedVal {
1196
1196
/// [WebAssembly specification]:
1197
1197
/// https://webassembly.github.io/spec/core/exec/numerics.html#op-trunc-s
1198
1198
pub fn i64_trunc_f64_u ( self ) -> Result < Self , TrapCode > {
1199
- self . try_execute_unary ( <F64 as TryTruncateInto < u64 , TrapCode > >:: try_truncate_into)
1199
+ self . try_execute_unary ( <f64 as TryTruncateInto < u64 , TrapCode > >:: try_truncate_into)
1200
1200
}
1201
1201
1202
1202
/// Execute `f32.convert_i32_s` Wasm operation.
@@ -1246,7 +1246,7 @@ impl UntypedVal {
1246
1246
1247
1247
/// Execute `f64.promote_f32` Wasm operation.
1248
1248
pub fn f64_promote_f32 ( self ) -> Self {
1249
- self . execute_unary ( <F32 as ExtendInto < F64 > >:: extend_into)
1249
+ self . execute_unary ( <f32 as ExtendInto < F64 > >:: extend_into)
1250
1250
}
1251
1251
1252
1252
/// Execute `i32.extend8_s` Wasm operation.
@@ -1276,42 +1276,42 @@ impl UntypedVal {
1276
1276
1277
1277
/// Execute `i32.trunc_sat_f32_s` Wasm operation.
1278
1278
pub fn i32_trunc_sat_f32_s ( self ) -> Self {
1279
- self . execute_unary ( <F32 as TruncateSaturateInto < i32 > >:: truncate_saturate_into)
1279
+ self . execute_unary ( <f32 as TruncateSaturateInto < i32 > >:: truncate_saturate_into)
1280
1280
}
1281
1281
1282
1282
/// Execute `i32.trunc_sat_f32_u` Wasm operation.
1283
1283
pub fn i32_trunc_sat_f32_u ( self ) -> Self {
1284
- self . execute_unary ( <F32 as TruncateSaturateInto < u32 > >:: truncate_saturate_into)
1284
+ self . execute_unary ( <f32 as TruncateSaturateInto < u32 > >:: truncate_saturate_into)
1285
1285
}
1286
1286
1287
1287
/// Execute `i32.trunc_sat_f64_s` Wasm operation.
1288
1288
pub fn i32_trunc_sat_f64_s ( self ) -> Self {
1289
- self . execute_unary ( <F64 as TruncateSaturateInto < i32 > >:: truncate_saturate_into)
1289
+ self . execute_unary ( <f64 as TruncateSaturateInto < i32 > >:: truncate_saturate_into)
1290
1290
}
1291
1291
1292
1292
/// Execute `i32.trunc_sat_f64_u` Wasm operation.
1293
1293
pub fn i32_trunc_sat_f64_u ( self ) -> Self {
1294
- self . execute_unary ( <F64 as TruncateSaturateInto < u32 > >:: truncate_saturate_into)
1294
+ self . execute_unary ( <f64 as TruncateSaturateInto < u32 > >:: truncate_saturate_into)
1295
1295
}
1296
1296
1297
1297
/// Execute `i64.trunc_sat_f32_s` Wasm operation.
1298
1298
pub fn i64_trunc_sat_f32_s ( self ) -> Self {
1299
- self . execute_unary ( <F32 as TruncateSaturateInto < i64 > >:: truncate_saturate_into)
1299
+ self . execute_unary ( <f32 as TruncateSaturateInto < i64 > >:: truncate_saturate_into)
1300
1300
}
1301
1301
1302
1302
/// Execute `i64.trunc_sat_f32_u` Wasm operation.
1303
1303
pub fn i64_trunc_sat_f32_u ( self ) -> Self {
1304
- self . execute_unary ( <F32 as TruncateSaturateInto < u64 > >:: truncate_saturate_into)
1304
+ self . execute_unary ( <f32 as TruncateSaturateInto < u64 > >:: truncate_saturate_into)
1305
1305
}
1306
1306
1307
1307
/// Execute `i64.trunc_sat_f64_s` Wasm operation.
1308
1308
pub fn i64_trunc_sat_f64_s ( self ) -> Self {
1309
- self . execute_unary ( <F64 as TruncateSaturateInto < i64 > >:: truncate_saturate_into)
1309
+ self . execute_unary ( <f64 as TruncateSaturateInto < i64 > >:: truncate_saturate_into)
1310
1310
}
1311
1311
1312
1312
/// Execute `i64.trunc_sat_f64_u` Wasm operation.
1313
1313
pub fn i64_trunc_sat_f64_u ( self ) -> Self {
1314
- self . execute_unary ( <F64 as TruncateSaturateInto < u64 > >:: truncate_saturate_into)
1314
+ self . execute_unary ( <f64 as TruncateSaturateInto < u64 > >:: truncate_saturate_into)
1315
1315
}
1316
1316
}
1317
1317
0 commit comments