Trait faster::intrin::PackedAbs
[−]
[src]
pub trait PackedAbs { type Out; fn abs(&self) -> Self::Out; }
Associated Types
type Out
Required Methods
fn abs(&self) -> Self::Out
Return a vector the absolute value of the elements of self
.
Examples
extern crate faster; use faster::*; assert_eq!(i32s(-2).abs(), u32s(2)); assert_eq!(i8s(-256).abs(), u8s(256));
Implementors
impl PackedAbs for f32x4 type Out = f32x4;
impl PackedAbs for f64x2 type Out = f64x2;
impl PackedAbs for f32x8 type Out = f32x8;
impl PackedAbs for f64x4 type Out = f64x4;
impl PackedAbs for i8x16 type Out = u8x16;
impl PackedAbs for i16x8 type Out = u16x8;
impl PackedAbs for i32x4 type Out = u32x4;
impl PackedAbs for i8x32 type Out = u8x32;
impl PackedAbs for i16x16 type Out = u16x16;
impl PackedAbs for i32x8 type Out = u32x8;
impl PackedAbs for i64x2 type Out = u64x2;
impl PackedAbs for i64x4 type Out = u64x4;
impl PackedAbs for i64x8 type Out = u64x8;