mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
Simd feature gating + Win32/64 fixes.
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[feature(simd)];
|
||||
|
||||
use std::ops;
|
||||
|
||||
#[simd] struct f32x4(f32, f32, f32, f32);
|
||||
@@ -22,7 +24,7 @@ fn add(&self, rhs: &f32x4) -> f32x4 {
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
pub fn main() {
|
||||
let lr = f32x4(1.0f32, 2.0f32, 3.0f32, 4.0f32);
|
||||
|
||||
// lame-o
|
||||
|
||||
@@ -7,7 +7,9 @@
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
#[allow(experimental)];
|
||||
#[feature(simd)];
|
||||
|
||||
fn main() {
|
||||
pub fn main() {
|
||||
let _o = None::<std::unstable::simd::i32x4>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user