Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: warning E0566 #1

Merged
merged 1 commit into from
Sep 9, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 52 additions & 26 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ unsafe fn bitcast<T, U>(x: T) -> U {

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct m128i(i64, i64);

impl m128i {
Expand Down Expand Up @@ -78,7 +79,8 @@ impl m128i {

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct m128(f32, f32, f32, f32);

impl m128 {
Expand All @@ -95,7 +97,8 @@ impl m128 {

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct m128d(f64, f64);

impl m128d {
Expand All @@ -112,7 +115,8 @@ impl m128d {

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct m256i(i32, i32, i32, i32, i32, i32, i32, i32);

impl m256i {
Expand Down Expand Up @@ -143,7 +147,8 @@ impl m256i {

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct m256(f32, f32, f32, f32, f32, f32, f32, f32);

impl m256 {
Expand All @@ -160,7 +165,8 @@ impl m256 {

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct m256d(f64, f64, f64, f64);

impl m256d {
Expand All @@ -177,103 +183,123 @@ impl m256d {

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct i64x2(i64, i64);

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct u64x2(u64, u64);

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct f64x2(f64, f64);

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct i32x4(i32, i32, i32, i32);

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct u32x4(u32, u32, u32, u32);

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct f32x4(f32, f32, f32, f32);

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct i16x8(i16, i16, i16, i16, i16, i16, i16, i16);

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct u16x8(u16, u16, u16, u16, u16, u16, u16, u16);

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct i8x16(i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8);

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct u8x16(u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8);

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct i64x4(i64, i64, i64, i64);

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct u64x4(u64, u64, u64, u64);

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct f64x4(f64, f64, f64, f64);

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct i32x8(i32, i32, i32, i32, i32, i32, i32, i32);

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct u32x8(u32, u32, u32, u32, u32, u32, u32, u32);

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct f32x8(f32, f32, f32, f32, f32, f32, f32, f32);

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct i16x16(i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16);

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct u16x16(u16, u16, u16, u16, u16, u16, u16, u16, u16, u16, u16, u16, u16, u16, u16, u16);

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct i8x32(i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8,
i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8);

#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone)]
#[repr(C, simd)]
#[repr(simd)]
#[repr(C)]
pub struct u8x32(u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8,
u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8);

Expand Down