Skip to content

Commit 2956f86

Browse files
committed
---
yaml --- r: 60052 b: refs/heads/master c: c5a7be6 h: refs/heads/master v: v3
1 parent 642e52c commit 2956f86

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: f3217a5c9c2e838cacaf68fe9d54230be7faca6c
2+
refs/heads/master: c5a7be624a85e876ac8dacf0e53d64f0916112d1
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2d28d645422c1617be58c8ca7ad9a457264ca850
55
refs/heads/try: c50a9d5b664478e533ba1d1d353213d70c8ad589

trunk/src/libcore/core.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ pub mod nil;
164164
pub mod bool;
165165
pub mod char;
166166
pub mod tuple;
167+
pub mod simd;
167168

168169
pub mod vec;
169170
pub mod at_vec;

trunk/src/libcore/simd.rs

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
//! SIMD vectors
12+
13+
#[allow(non_camel_case_types)];
14+
15+
#[simd]
16+
pub struct i8x16(i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8);
17+
18+
#[simd]
19+
pub struct i16x8(i16, i16, i16, i16, i16, i16, i16, i16);
20+
21+
#[simd]
22+
pub struct i32x4(i32, i32, i32, i32);
23+
24+
#[simd]
25+
pub struct i64x2(i64, i64);
26+
27+
#[simd]
28+
pub struct u8x16(u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8);
29+
30+
#[simd]
31+
pub struct u16x8(u16, u16, u16, u16, u16, u16, u16, u16);
32+
33+
#[simd]
34+
pub struct u32x4(u32, u32, u32, u32);
35+
36+
#[simd]
37+
pub struct u64x2(u64, u64);
38+
39+
#[simd]
40+
pub struct f32x4(f32, f32, f32, f32);
41+
42+
#[simd]
43+
pub struct f64x2(f64, f64);

0 commit comments

Comments
 (0)