Simd feature gating + Win32/64 fixes.

This commit is contained in:
Richard Diamond
2014-02-04 01:04:19 -06:00
parent 8658a433f2
commit 63ba2e1219
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -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
+3 -1
View File
@@ -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>;
}