2013-05-02 07:33:41 -05:00
|
|
|
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
|
|
|
//! SIMD vectors
|
|
|
|
|
2014-03-21 20:05:05 -05:00
|
|
|
#![allow(non_camel_case_types)]
|
2013-05-02 07:33:41 -05:00
|
|
|
|
2014-01-22 19:25:22 -06:00
|
|
|
#[experimental]
|
2013-05-02 07:33:41 -05:00
|
|
|
#[simd]
|
2014-03-31 21:01:01 -05:00
|
|
|
pub struct i8x16(pub i8, pub i8, pub i8, pub i8,
|
|
|
|
pub i8, pub i8, pub i8, pub i8,
|
|
|
|
pub i8, pub i8, pub i8, pub i8,
|
|
|
|
pub i8, pub i8, pub i8, pub i8);
|
2013-05-02 07:33:41 -05:00
|
|
|
|
2014-01-22 19:25:22 -06:00
|
|
|
#[experimental]
|
2013-05-02 07:33:41 -05:00
|
|
|
#[simd]
|
2014-03-31 21:01:01 -05:00
|
|
|
pub struct i16x8(pub i16, pub i16, pub i16, pub i16,
|
|
|
|
pub i16, pub i16, pub i16, pub i16);
|
2013-05-02 07:33:41 -05:00
|
|
|
|
2014-01-22 19:25:22 -06:00
|
|
|
#[experimental]
|
2013-05-02 07:33:41 -05:00
|
|
|
#[simd]
|
2014-03-31 21:01:01 -05:00
|
|
|
pub struct i32x4(pub i32, pub i32, pub i32, pub i32);
|
2013-05-02 07:33:41 -05:00
|
|
|
|
2014-01-22 19:25:22 -06:00
|
|
|
#[experimental]
|
2013-05-02 07:33:41 -05:00
|
|
|
#[simd]
|
2014-03-31 21:01:01 -05:00
|
|
|
pub struct i64x2(pub i64, pub i64);
|
2013-05-02 07:33:41 -05:00
|
|
|
|
2014-01-22 19:25:22 -06:00
|
|
|
#[experimental]
|
2013-05-02 07:33:41 -05:00
|
|
|
#[simd]
|
2014-03-31 21:01:01 -05:00
|
|
|
pub struct u8x16(pub u8, pub u8, pub u8, pub u8,
|
|
|
|
pub u8, pub u8, pub u8, pub u8,
|
|
|
|
pub u8, pub u8, pub u8, pub u8,
|
|
|
|
pub u8, pub u8, pub u8, pub u8);
|
2013-05-02 07:33:41 -05:00
|
|
|
|
2014-01-22 19:25:22 -06:00
|
|
|
#[experimental]
|
2013-05-02 07:33:41 -05:00
|
|
|
#[simd]
|
2014-03-31 21:01:01 -05:00
|
|
|
pub struct u16x8(pub u16, pub u16, pub u16, pub u16,
|
|
|
|
pub u16, pub u16, pub u16, pub u16);
|
2013-05-02 07:33:41 -05:00
|
|
|
|
2014-01-22 19:25:22 -06:00
|
|
|
#[experimental]
|
2013-05-02 07:33:41 -05:00
|
|
|
#[simd]
|
2014-03-31 21:01:01 -05:00
|
|
|
pub struct u32x4(pub u32, pub u32, pub u32, pub u32);
|
2013-05-02 07:33:41 -05:00
|
|
|
|
2014-01-22 19:25:22 -06:00
|
|
|
#[experimental]
|
2013-05-02 07:33:41 -05:00
|
|
|
#[simd]
|
2014-03-31 21:01:01 -05:00
|
|
|
pub struct u64x2(pub u64, pub u64);
|
2013-05-02 07:33:41 -05:00
|
|
|
|
2014-01-22 19:25:22 -06:00
|
|
|
#[experimental]
|
2013-05-02 07:33:41 -05:00
|
|
|
#[simd]
|
2014-03-31 21:01:01 -05:00
|
|
|
pub struct f32x4(pub f32, pub f32, pub f32, pub f32);
|
2013-05-02 07:33:41 -05:00
|
|
|
|
2014-01-22 19:25:22 -06:00
|
|
|
#[experimental]
|
2013-05-02 07:33:41 -05:00
|
|
|
#[simd]
|
2014-03-31 21:01:01 -05:00
|
|
|
pub struct f64x2(pub f64, pub f64);
|