Skip to content

Commit 543bcd3

Browse files
committed
Combine vector definition modules by scalar type
1 parent c74eec7 commit 543bcd3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+573
-535
lines changed

crates/core_simd/src/lib.rs

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
1+
#![no_std]
12
#![feature(repr_simd)]
23
#![warn(missing_docs)]
4+
35
#[macro_use]
46
mod macros;
57

6-
macro_rules! import_types {
7-
{ $($mod:ident,)* } => {
8-
$(
9-
mod $mod;
10-
pub use $mod::*;
11-
)*
12-
}
13-
}
14-
15-
import_types! {
16-
type_u8x2, type_u8x4, type_u8x8, type_u8x16, type_u8x32, type_u8x64,
17-
type_i8x2, type_i8x4, type_i8x8, type_i8x16, type_i8x32, type_i8x64,
18-
type_u16x2, type_u16x4, type_u16x8, type_u16x16, type_u16x32,
19-
type_i16x2, type_i16x4, type_i16x8, type_i16x16, type_i16x32,
20-
type_u32x2, type_u32x4, type_u32x8, type_u32x16,
21-
type_i32x2, type_i32x4, type_i32x8, type_i32x16,
22-
type_u64x2, type_u64x4, type_u64x8,
23-
type_i64x2, type_i64x4, type_i64x8,
24-
type_u128x2, type_u128x4,
25-
type_i128x2, type_i128x4,
26-
}
27-
28-
import_types! {
29-
type_usizex2, type_usizex4, type_usizex8,
30-
type_isizex2, type_isizex4, type_isizex8,
31-
}
32-
33-
import_types! {
34-
type_f32x2, type_f32x4, type_f32x8, type_f32x16,
35-
type_f64x2, type_f64x4, type_f64x8,
36-
}
8+
mod vectors_u8;
9+
pub use vectors_u8::*;
10+
mod vectors_u16;
11+
pub use vectors_u16::*;
12+
mod vectors_u32;
13+
pub use vectors_u32::*;
14+
mod vectors_u64;
15+
pub use vectors_u64::*;
16+
mod vectors_u128;
17+
pub use vectors_u128::*;
18+
mod vectors_usize;
19+
pub use vectors_usize::*;
20+
mod vectors_i8;
21+
pub use vectors_i8::*;
22+
mod vectors_i16;
23+
pub use vectors_i16::*;
24+
mod vectors_i32;
25+
pub use vectors_i32::*;
26+
mod vectors_i64;
27+
pub use vectors_i64::*;
28+
mod vectors_i128;
29+
pub use vectors_i128::*;
30+
mod vectors_isize;
31+
pub use vectors_isize::*;
32+
mod vectors_f32;
33+
pub use vectors_f32::*;
34+
mod vectors_f64;
35+
pub use vectors_f64::*;

crates/core_simd/src/type_f32x16.rs

Lines changed: 0 additions & 12 deletions
This file was deleted.

crates/core_simd/src/type_f32x2.rs

Lines changed: 0 additions & 4 deletions
This file was deleted.

crates/core_simd/src/type_f32x4.rs

Lines changed: 0 additions & 10 deletions
This file was deleted.

crates/core_simd/src/type_f32x8.rs

Lines changed: 0 additions & 10 deletions
This file was deleted.

crates/core_simd/src/type_f64x2.rs

Lines changed: 0 additions & 10 deletions
This file was deleted.

crates/core_simd/src/type_f64x4.rs

Lines changed: 0 additions & 10 deletions
This file was deleted.

crates/core_simd/src/type_f64x8.rs

Lines changed: 0 additions & 12 deletions
This file was deleted.

crates/core_simd/src/type_i128x2.rs

Lines changed: 0 additions & 10 deletions
This file was deleted.

crates/core_simd/src/type_i128x4.rs

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)