We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ea27bf commit eef4371Copy full SHA for eef4371
library/core/tests/simd.rs
@@ -7,7 +7,7 @@ fn testing() {
7
let x = f32x4::from_array([1.0, 1.0, 1.0, 1.0]);
8
let y = -x;
9
10
- let h = x * 0.5;
+ let h = x * f32x4::splat(0.5);
11
12
let r = y.abs();
13
assert_eq!(x, r);
0 commit comments