Trait faster::intrin::Upcast
[−]
[src]
pub trait Upcast<T> { fn upcast(self) -> (T, T); }
Required Methods
fn upcast(self) -> (T, T)
Return two vectors containing elements of the same value, but different
type. The first vector contains the first half of self
, and the second
vector contains the second half. Both returned vectors are equal in size
to self
.
Examples
extern crate faster; use faster::*; assert_eq!(i8s::halfs(2, 3).upcast(), (i16s(2), i16s(3)))
Implementors
impl Upcast<u16x8> for u8x16
impl Upcast<i16x8> for i8x16
impl Upcast<u32x4> for u16x8
impl Upcast<i32x4> for i16x8
impl Upcast<u16x16> for u8x32
impl Upcast<i16x16> for i8x32
impl Upcast<u32x8> for u16x16
impl Upcast<i32x8> for i16x16
impl Upcast<f64x2> for f32x4
impl Upcast<f64x2> for i32x4
impl Upcast<i64x2> for i32x4
impl Upcast<u64x2> for u32x4
impl Upcast<f64x4> for f32x8
impl Upcast<f64x4> for i32x8
impl Upcast<i64x4> for i32x8
impl Upcast<u64x4> for u32x8
impl Upcast<f64x8> for f32x16
impl Upcast<f64x8> for i32x16
impl Upcast<i64x8> for i32x16
impl Upcast<u64x8> for u32x16