Skip to content

Commit ebf65de

Browse files
Delete outmoded fn round_from_int
1 parent 01350a2 commit ebf65de

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

crates/core_simd/src/round.rs

-7
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ macro_rules! implement {
2222
pub unsafe fn to_int_unchecked(self) -> Simd<$int_type, LANES> {
2323
unsafe { intrinsics::simd_cast(self) }
2424
}
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-
}
3225
}
3326
}
3427
}

crates/core_simd/tests/round.rs

-8
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,6 @@ macro_rules! float_rounding_test {
5353
}
5454

5555
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-
6456
fn to_int_unchecked<const LANES: usize>() {
6557
// The maximum integer that can be represented by the equivalently sized float has
6658
// all of the mantissa digits set to 1, pushed up to the MSB.

0 commit comments

Comments
 (0)