Browse Source

Formatting tweaks

pull/3/head
Cesar Eduardo Barros 9 years ago
parent
commit
15689d0e67
  1. 3
      src/lib.rs
  2. 2
      src/simd_opt/u32x4.rs
  3. 2
      src/simd_opt/u64x4.rs
  4. 2
      src/simdty.rs

3
src/lib.rs

@ -16,7 +16,8 @@
#![cfg_attr(feature = "simd_opt", feature(cfg_target_feature))]
#![cfg_attr(feature = "simd_asm", feature(asm))]
#[cfg(all(feature = "bench", test))] extern crate test;
#[cfg(all(feature = "bench", test))]
extern crate test;
extern crate constant_time_eq;

2
src/simd_opt/u32x4.rs

@ -15,7 +15,7 @@ pub fn rotate_right_const(vec: u32x4, n: u32) -> u32x4 {
match n {
16 => rotate_right_16(vec),
8 => rotate_right_8(vec),
_ => rotate_right_any(vec, n),
_ => rotate_right_any(vec, n),
}
}

2
src/simd_opt/u64x4.rs

@ -16,7 +16,7 @@ pub fn rotate_right_const(vec: u64x4, n: u32) -> u64x4 {
32 => rotate_right_32(vec),
24 => rotate_right_24(vec),
16 => rotate_right_16(vec),
_ => rotate_right_any(vec, n),
_ => rotate_right_any(vec, n),
}
}

2
src/simdty.rs

@ -7,7 +7,6 @@
#![allow(dead_code)]
#![allow(non_camel_case_types)]
#![cfg_attr(feature = "clippy", allow(inline_always))]
#[cfg(feature = "simd")]
macro_rules! decl_simd {
@ -63,6 +62,7 @@ pub type u16x16 = Simd16<u16>;
pub type u8x32 = Simd32<u8>;
#[cfg_attr(feature = "clippy", allow(inline_always))]
impl<T> Simd4<T> {
#[inline(always)]
pub fn new(e0: T, e1: T, e2: T, e3: T) -> Simd4<T> {

Loading…
Cancel
Save