Skip to content

Commit 6e90824

Browse files
committed
Reenable ops and fix tests
1 parent cbb9b98 commit 6e90824

File tree

6 files changed

+112
-204
lines changed

6 files changed

+112
-204
lines changed

crates/core_simd/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ mod macros;
88

99
mod fmt;
1010
mod intrinsics;
11-
//mod ops;
11+
mod ops;
1212
//mod round;
1313

1414
//pub mod masks;

crates/core_simd/src/macros.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,13 @@ macro_rules! impl_float_vector {
295295
unsafe { core::mem::transmute_copy(&bits) }
296296
}
297297

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+
}
305305
}
306306
};
307307
}

0 commit comments

Comments
 (0)