@@ -43,7 +43,7 @@ pub fn unreachable() -> ! {
4343#[ must_use = "method returns a new number and does not mutate the original value" ]
4444#[ unstable( feature = "wasm_numeric_instr" , issue = "133908" ) ]
4545pub fn f32_ceil ( a : f32 ) -> f32 {
46- unsafe { crate :: intrinsics:: ceilf32 ( a) }
46+ crate :: intrinsics:: ceilf32 ( a)
4747}
4848
4949/// Generates the [`f32.floor`] instruction, returning the largest integer less than or equal to `a`.
@@ -57,7 +57,7 @@ pub fn f32_ceil(a: f32) -> f32 {
5757#[ must_use = "method returns a new number and does not mutate the original value" ]
5858#[ unstable( feature = "wasm_numeric_instr" , issue = "133908" ) ]
5959pub fn f32_floor ( a : f32 ) -> f32 {
60- unsafe { crate :: intrinsics:: floorf32 ( a) }
60+ crate :: intrinsics:: floorf32 ( a)
6161}
6262
6363/// Generates the [`f32.trunc`] instruction, roundinging to the nearest integer towards zero.
@@ -71,7 +71,7 @@ pub fn f32_floor(a: f32) -> f32 {
7171#[ must_use = "method returns a new number and does not mutate the original value" ]
7272#[ unstable( feature = "wasm_numeric_instr" , issue = "133908" ) ]
7373pub fn f32_trunc ( a : f32 ) -> f32 {
74- unsafe { crate :: intrinsics:: truncf32 ( a) }
74+ crate :: intrinsics:: truncf32 ( a)
7575}
7676
7777/// Generates the [`f32.nearest`] instruction, roundinging to the nearest integer. Rounds half-way
@@ -100,7 +100,7 @@ pub fn f32_nearest(a: f32) -> f32 {
100100#[ must_use = "method returns a new number and does not mutate the original value" ]
101101#[ unstable( feature = "wasm_numeric_instr" , issue = "133908" ) ]
102102pub fn f32_sqrt ( a : f32 ) -> f32 {
103- unsafe { crate :: intrinsics:: sqrtf32 ( a) }
103+ crate :: intrinsics:: sqrtf32 ( a)
104104}
105105
106106/// Generates the [`f64.ceil`] instruction, returning the smallest integer greater than or equal to `a`.
@@ -114,7 +114,7 @@ pub fn f32_sqrt(a: f32) -> f32 {
114114#[ must_use = "method returns a new number and does not mutate the original value" ]
115115#[ unstable( feature = "wasm_numeric_instr" , issue = "133908" ) ]
116116pub fn f64_ceil ( a : f64 ) -> f64 {
117- unsafe { crate :: intrinsics:: ceilf64 ( a) }
117+ crate :: intrinsics:: ceilf64 ( a)
118118}
119119
120120/// Generates the [`f64.floor`] instruction, returning the largest integer less than or equal to `a`.
@@ -128,7 +128,7 @@ pub fn f64_ceil(a: f64) -> f64 {
128128#[ must_use = "method returns a new number and does not mutate the original value" ]
129129#[ unstable( feature = "wasm_numeric_instr" , issue = "133908" ) ]
130130pub fn f64_floor ( a : f64 ) -> f64 {
131- unsafe { crate :: intrinsics:: floorf64 ( a) }
131+ crate :: intrinsics:: floorf64 ( a)
132132}
133133
134134/// Generates the [`f64.trunc`] instruction, roundinging to the nearest integer towards zero.
@@ -142,7 +142,7 @@ pub fn f64_floor(a: f64) -> f64 {
142142#[ must_use = "method returns a new number and does not mutate the original value" ]
143143#[ unstable( feature = "wasm_numeric_instr" , issue = "133908" ) ]
144144pub fn f64_trunc ( a : f64 ) -> f64 {
145- unsafe { crate :: intrinsics:: truncf64 ( a) }
145+ crate :: intrinsics:: truncf64 ( a)
146146}
147147
148148/// Generates the [`f64.nearest`] instruction, roundinging to the nearest integer. Rounds half-way
@@ -171,7 +171,7 @@ pub fn f64_nearest(a: f64) -> f64 {
171171#[ must_use = "method returns a new number and does not mutate the original value" ]
172172#[ unstable( feature = "wasm_numeric_instr" , issue = "133908" ) ]
173173pub fn f64_sqrt ( a : f64 ) -> f64 {
174- unsafe { crate :: intrinsics:: sqrtf64 ( a) }
174+ crate :: intrinsics:: sqrtf64 ( a)
175175}
176176
177177unsafe extern "C-unwind" {
0 commit comments