Skip to content

Commit

Permalink
Use repr(C) for SIMD-like types
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarb committed Aug 1, 2015
1 parent d1c1a98 commit 80b1ac8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "blake2-rfc"
version = "0.2.8"
version = "0.2.9"
authors = ["Cesar Eduardo Barros <[email protected]>"]
description = "A pure Rust implementation of BLAKE2 based on the draft RFC."
repository = "https://github.com/cesarb/blake2-rfc"
Expand Down
4 changes: 2 additions & 2 deletions src/simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ use std::mem::transmute;
pub use simdty::{u32x4, u64x4};

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

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

#[cfg(not(feature = "simd"))]
Expand Down

0 comments on commit 80b1ac8

Please sign in to comment.