]> git.lizzy.rs Git - rust.git/blob - src/libstd/unstable/simd.rs
Convert most code to new inner attribute syntax.
[rust.git] / src / libstd / unstable / simd.rs
1 // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 //! SIMD vectors
12
13 #![allow(non_camel_case_types)]
14
15 #[experimental]
16 #[simd]
17 pub struct i8x16(i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8);
18
19 #[experimental]
20 #[simd]
21 pub struct i16x8(i16, i16, i16, i16, i16, i16, i16, i16);
22
23 #[experimental]
24 #[simd]
25 pub struct i32x4(i32, i32, i32, i32);
26
27 #[experimental]
28 #[simd]
29 pub struct i64x2(i64, i64);
30
31 #[experimental]
32 #[simd]
33 pub struct u8x16(u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8);
34
35 #[experimental]
36 #[simd]
37 pub struct u16x8(u16, u16, u16, u16, u16, u16, u16, u16);
38
39 #[experimental]
40 #[simd]
41 pub struct u32x4(u32, u32, u32, u32);
42
43 #[experimental]
44 #[simd]
45 pub struct u64x2(u64, u64);
46
47 #[experimental]
48 #[simd]
49 pub struct f32x4(f32, f32, f32, f32);
50
51 #[experimental]
52 #[simd]
53 pub struct f64x2(f64, f64);