]> git.lizzy.rs Git - rust.git/blob - library/core/tests/simd.rs
Add a dedicated length-prefixing method to `Hasher`
[rust.git] / library / core / tests / simd.rs
1 use core::simd::f32x4;
2
3 #[test]
4 fn testing() {
5     let x = f32x4::from_array([1.0, 1.0, 1.0, 1.0]);
6     let y = -x;
7
8     let h = x * f32x4::splat(0.5);
9
10     let r = y.abs();
11     assert_eq!(x, r);
12     assert_eq!(h, f32x4::splat(0.5));
13 }