2023-11-19 11:06:25 -06:00
|
|
|
use core::simd::prelude::*;
|
2021-10-22 02:47:12 -05:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn testing() {
|
|
|
|
let x = f32x4::from_array([1.0, 1.0, 1.0, 1.0]);
|
|
|
|
let y = -x;
|
|
|
|
|
2021-12-02 21:22:00 -06:00
|
|
|
let h = x * f32x4::splat(0.5);
|
2021-10-22 02:47:12 -05:00
|
|
|
|
|
|
|
let r = y.abs();
|
|
|
|
assert_eq!(x, r);
|
|
|
|
assert_eq!(h, f32x4::splat(0.5));
|
|
|
|
}
|