File tree Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments