1 // Copyright 2015 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.
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.
11 // pretty-expanded FIXME #23616
14 #![allow(non_camel_case_types)]
18 /// `T` should satisfy `size_of T (mod min_align_of T) === 0` to be stored at `Vec<T>` properly
19 /// Please consult the issue #20460
21 assert_eq!(mem::size_of::<T>() % mem::min_align_of::<T>(), 0)
50 #[simd] struct u8x2(u8, u8);
51 #[simd] struct u8x3(u8, u8, u8);
52 #[simd] struct u8x4(u8, u8, u8, u8);
53 #[simd] struct u8x5(u8, u8, u8, u8, u8);
54 #[simd] struct u8x6(u8, u8, u8, u8, u8, u8);
55 #[simd] struct u8x7(u8, u8, u8, u8, u8, u8, u8);
56 #[simd] struct u8x8(u8, u8, u8, u8, u8, u8, u8, u8);
58 #[simd] struct i16x2(i16, i16);
59 #[simd] struct i16x3(i16, i16, i16);
60 #[simd] struct i16x4(i16, i16, i16, i16);
61 #[simd] struct i16x5(i16, i16, i16, i16, i16);
62 #[simd] struct i16x6(i16, i16, i16, i16, i16, i16);
63 #[simd] struct i16x7(i16, i16, i16, i16, i16, i16, i16);
64 #[simd] struct i16x8(i16, i16, i16, i16, i16, i16, i16, i16);
66 #[simd] struct f32x2(f32, f32);
67 #[simd] struct f32x3(f32, f32, f32);
68 #[simd] struct f32x4(f32, f32, f32, f32);
69 #[simd] struct f32x5(f32, f32, f32, f32, f32);
70 #[simd] struct f32x6(f32, f32, f32, f32, f32, f32);
71 #[simd] struct f32x7(f32, f32, f32, f32, f32, f32, f32);
72 #[simd] struct f32x8(f32, f32, f32, f32, f32, f32, f32, f32);