Skip to content

Commit ba71b64

Browse files
gnzlbgalexcrichton
authored andcommitted
[fmt] use cargo fmt --all (rust-lang#161)
1 parent afc0549 commit ba71b64

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

.travis.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,7 @@ matrix:
2020
- env: RUSTFMT=On TARGET=x86_64-unknown-linux-gnu NO_ADD=1
2121
script: |
2222
cargo install rustfmt-nightly
23-
cargo fmt -- --write-mode=diff
24-
cd stdsimd
25-
cargo fmt -- --write-mode=diff
26-
cd assert-instr-macro
27-
cargo fmt -- --write-mode=diff
28-
cd ../simd-test-macro
29-
cargo fmt -- --write-mode=diff
23+
cargo fmt --all -- --write-mode=diff
3024
allow_failures:
3125
- env: RUSTFMT=On TARGET=x86_64-unknown-linux-gnu NO_ADD=1
3226

src/x86/avx2.rs

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,9 @@ pub unsafe fn _mm_maskload_epi32(mem_addr: *const i32, mask: i32x4) -> i32x4 {
755755
#[inline(always)]
756756
#[target_feature = "+avx2"]
757757
#[cfg_attr(test, assert_instr(vpmaskmovd))]
758-
pub unsafe fn _mm256_maskload_epi32(mem_addr: *const i32, mask: i32x8) -> i32x8 {
758+
pub unsafe fn _mm256_maskload_epi32(
759+
mem_addr: *const i32, mask: i32x8
760+
) -> i32x8 {
759761
maskloadd256(mem_addr as *const i8, mask)
760762
}
761763

@@ -775,7 +777,9 @@ pub unsafe fn _mm_maskload_epi64(mem_addr: *const i64, mask: i64x2) -> i64x2 {
775777
#[inline(always)]
776778
#[target_feature = "+avx2"]
777779
#[cfg_attr(test, assert_instr(vpmaskmovq))]
778-
pub unsafe fn _mm256_maskload_epi64(mem_addr: *const i64, mask: i64x4) -> i64x4 {
780+
pub unsafe fn _mm256_maskload_epi64(
781+
mem_addr: *const i64, mask: i64x4
782+
) -> i64x4 {
779783
maskloadq256(mem_addr as *const i8, mask)
780784
}
781785

@@ -795,7 +799,9 @@ pub unsafe fn _mm_maskstore_epi32(mem_addr: *mut i32, mask: i32x4, a: i32x4) {
795799
#[inline(always)]
796800
#[target_feature = "+avx2"]
797801
#[cfg_attr(test, assert_instr(vpmaskmovd))]
798-
pub unsafe fn _mm256_maskstore_epi32(mem_addr: *mut i32, mask: i32x8, a: i32x8) {
802+
pub unsafe fn _mm256_maskstore_epi32(
803+
mem_addr: *mut i32, mask: i32x8, a: i32x8
804+
) {
799805
maskstored256(mem_addr as *mut i8, mask, a)
800806
}
801807

@@ -815,7 +821,9 @@ pub unsafe fn _mm_maskstore_epi64(mem_addr: *mut i64, mask: i64x2, a: i64x2) {
815821
#[inline(always)]
816822
#[target_feature = "+avx2"]
817823
#[cfg_attr(test, assert_instr(vpmaskmovq))]
818-
pub unsafe fn _mm256_maskstore_epi64(mem_addr: *mut i64, mask: i64x4, a: i64x4) {
824+
pub unsafe fn _mm256_maskstore_epi64(
825+
mem_addr: *mut i64, mask: i64x4, a: i64x4
826+
) {
819827
maskstoreq256(mem_addr as *mut i8, mask, a)
820828
}
821829

@@ -1184,7 +1192,8 @@ pub unsafe fn _mm256_shuffle_epi8(a: u8x32, b: u8x32) -> u8x32 {
11841192
pshufb(a, b)
11851193
}
11861194

1187-
/// Shuffle 32-bit integers in 128-bit lanes of `a` using the control in `imm8`.
1195+
/// Shuffle 32-bit integers in 128-bit lanes of `a` using the control in
1196+
/// `imm8`.
11881197
///
11891198
/// ```rust
11901199
/// # #![feature(cfg_target_feature)]

stdsimd-test/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ pub fn assert(fnptr: usize, fnname: &str, expected: &str) {
326326

327327
pub fn assert_skip_test_ok(name: &str) {
328328
if env::var("STDSIMD_TEST_EVERYTHING").is_err() {
329-
return
329+
return;
330330
}
331331
panic!("skipped test `{}` when it shouldn't be skipped", name);
332332
}

0 commit comments

Comments
 (0)