@@ -5,47 +5,6 @@ macro_rules! implement {
55 {
66 $type: ty, $int_type: ty
77 } => {
8- #[ cfg( feature = "std" ) ]
9- impl <const LANES : usize > Simd <$type, LANES >
10- where
11- LaneCount <LANES >: SupportedLaneCount ,
12- {
13- /// Returns the smallest integer greater than or equal to each lane.
14- #[ must_use = "method returns a new vector and does not mutate the original value" ]
15- #[ inline]
16- pub fn ceil( self ) -> Self {
17- unsafe { intrinsics:: simd_ceil( self ) }
18- }
19-
20- /// Returns the largest integer value less than or equal to each lane.
21- #[ must_use = "method returns a new vector and does not mutate the original value" ]
22- #[ inline]
23- pub fn floor( self ) -> Self {
24- unsafe { intrinsics:: simd_floor( self ) }
25- }
26-
27- /// Rounds to the nearest integer value. Ties round toward zero.
28- #[ must_use = "method returns a new vector and does not mutate the original value" ]
29- #[ inline]
30- pub fn round( self ) -> Self {
31- unsafe { intrinsics:: simd_round( self ) }
32- }
33-
34- /// Returns the floating point's integer value, with its fractional part removed.
35- #[ must_use = "method returns a new vector and does not mutate the original value" ]
36- #[ inline]
37- pub fn trunc( self ) -> Self {
38- unsafe { intrinsics:: simd_trunc( self ) }
39- }
40-
41- /// Returns the floating point's fractional value, with its integer part removed.
42- #[ must_use = "method returns a new vector and does not mutate the original value" ]
43- #[ inline]
44- pub fn fract( self ) -> Self {
45- self - self . trunc( )
46- }
47- }
48-
498 impl <const LANES : usize > Simd <$type, LANES >
509 where
5110 LaneCount <LANES >: SupportedLaneCount ,
0 commit comments