File tree Expand file tree Collapse file tree 6 files changed +112
-204
lines changed Expand file tree Collapse file tree 6 files changed +112
-204
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ mod macros;
8
8
9
9
mod fmt;
10
10
mod intrinsics;
11
- // mod ops;
11
+ mod ops;
12
12
//mod round;
13
13
14
14
//pub mod masks;
Original file line number Diff line number Diff line change @@ -295,13 +295,13 @@ macro_rules! impl_float_vector {
295
295
unsafe { core:: mem:: transmute_copy( & bits) }
296
296
}
297
297
298
- // /// Produces a vector where every lane has the absolute value of the
299
- // /// equivalently-indexed lane in `self`.
300
- // #[inline]
301
- // pub fn abs(self) -> Self {
302
- // let no_sign = < $bits_ty> ::splat(!0 >> 1);
303
- // Self::from_bits(self.to_bits() & no_sign)
304
- // }
298
+ /// Produces a vector where every lane has the absolute value of the
299
+ /// equivalently-indexed lane in `self`.
300
+ #[ inline]
301
+ pub fn abs( self ) -> Self {
302
+ let no_sign = crate :: $bits_ty:: splat( !0 >> 1 ) ;
303
+ Self :: from_bits( self . to_bits( ) & no_sign)
304
+ }
305
305
}
306
306
} ;
307
307
}
You can’t perform that action at this time.
0 commit comments