Sign in
nest-open-source
/
manifest_repos
/
toolchain
/
6143c57c644e0da7c4a10d1b4af322f92e74e6f7
/
.
/
arm
/
usr
/
lib
/
rustlib
/
src
/
rust
/
library
/
core
/
tests
/
simd.rs
blob: 565c8975eb94feb8dede274f55d457fb02aed6b7 [
file
] [
log
] [
blame
]
use
core
::
simd
::
f32x4
;
use
core
::
simd
::
SimdFloat
;
#[
test
]
fn
testing
()
{
let
x
=
f32x4
::
from_array
([
1.0
,
1.0
,
1.0
,
1.0
]);
let
y
=
-
x
;
let
h
=
x
*
f32x4
::
splat
(
0.5
);
let
r
=
y
.
abs
();
assert_eq
!(
x
,
r
);
assert_eq
!(
h
,
f32x4
::
splat
(
0.5
));
}