From ebf65de2ce331f428a174f4ade13f60c8654472f Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Wed, 2 Feb 2022 18:14:16 -0800 Subject: [PATCH] Delete outmoded fn round_from_int --- crates/core_simd/src/round.rs | 7 ------- crates/core_simd/tests/round.rs | 8 -------- 2 files changed, 15 deletions(-) diff --git a/crates/core_simd/src/round.rs b/crates/core_simd/src/round.rs index 06ccab3ec494..08339593600a 100644 --- a/crates/core_simd/src/round.rs +++ b/crates/core_simd/src/round.rs @@ -22,13 +22,6 @@ macro_rules! implement { pub unsafe fn to_int_unchecked(self) -> Simd<$int_type, LANES> { unsafe { intrinsics::simd_cast(self) } } - - /// Creates a floating-point vector from an integer vector. Rounds values that are - /// not exactly representable. - #[inline] - pub fn round_from_int(value: Simd<$int_type, LANES>) -> Self { - unsafe { intrinsics::simd_cast(value) } - } } } } diff --git a/crates/core_simd/tests/round.rs b/crates/core_simd/tests/round.rs index 1a1bc9ebca76..90547d5782c7 100644 --- a/crates/core_simd/tests/round.rs +++ b/crates/core_simd/tests/round.rs @@ -53,14 +53,6 @@ macro_rules! float_rounding_test { } test_helpers::test_lanes! { - fn from_int() { - test_helpers::test_unary_elementwise( - &Vector::::round_from_int, - &|x| x as Scalar, - &|_| true, - ) - } - fn to_int_unchecked() { // The maximum integer that can be represented by the equivalently sized float has // all of the mantissa digits set to 1, pushed up to the MSB.