File tree 2 files changed +0
-15
lines changed
2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,6 @@ macro_rules! implement {
22
22
pub unsafe fn to_int_unchecked( self ) -> Simd <$int_type, LANES > {
23
23
unsafe { intrinsics:: simd_cast( self ) }
24
24
}
25
-
26
- /// Creates a floating-point vector from an integer vector. Rounds values that are
27
- /// not exactly representable.
28
- #[ inline]
29
- pub fn round_from_int( value: Simd <$int_type, LANES >) -> Self {
30
- unsafe { intrinsics:: simd_cast( value) }
31
- }
32
25
}
33
26
}
34
27
}
Original file line number Diff line number Diff line change @@ -53,14 +53,6 @@ macro_rules! float_rounding_test {
53
53
}
54
54
55
55
test_helpers:: test_lanes! {
56
- fn from_int<const LANES : usize >( ) {
57
- test_helpers:: test_unary_elementwise(
58
- & Vector :: <LANES >:: round_from_int,
59
- & |x| x as Scalar ,
60
- & |_| true ,
61
- )
62
- }
63
-
64
56
fn to_int_unchecked<const LANES : usize >( ) {
65
57
// The maximum integer that can be represented by the equivalently sized float has
66
58
// all of the mantissa digits set to 1, pushed up to the MSB.
You can’t perform that action at this time.
0 commit comments