@@ -23785,14 +23785,7 @@ pub fn vrndph_f16(a: f16) -> f16 {
23785
23785
#[unstable(feature = "stdarch_neon_f16", issue = "136306")]
23786
23786
#[cfg_attr(test, assert_instr(frintx))]
23787
23787
pub fn vrndx_f16(a: float16x4_t) -> float16x4_t {
23788
- unsafe extern "unadjusted" {
23789
- #[cfg_attr(
23790
- any(target_arch = "aarch64", target_arch = "arm64ec"),
23791
- link_name = "llvm.rint.v4f16"
23792
- )]
23793
- fn _vrndx_f16(a: float16x4_t) -> float16x4_t;
23794
- }
23795
- unsafe { _vrndx_f16(a) }
23788
+ unsafe { simd_round_ties_even(a) }
23796
23789
}
23797
23790
#[doc = "Floating-point round to integral exact, using current rounding mode"]
23798
23791
#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vrndxq_f16)"]
@@ -23801,14 +23794,7 @@ pub fn vrndx_f16(a: float16x4_t) -> float16x4_t {
23801
23794
#[unstable(feature = "stdarch_neon_f16", issue = "136306")]
23802
23795
#[cfg_attr(test, assert_instr(frintx))]
23803
23796
pub fn vrndxq_f16(a: float16x8_t) -> float16x8_t {
23804
- unsafe extern "unadjusted" {
23805
- #[cfg_attr(
23806
- any(target_arch = "aarch64", target_arch = "arm64ec"),
23807
- link_name = "llvm.rint.v8f16"
23808
- )]
23809
- fn _vrndxq_f16(a: float16x8_t) -> float16x8_t;
23810
- }
23811
- unsafe { _vrndxq_f16(a) }
23797
+ unsafe { simd_round_ties_even(a) }
23812
23798
}
23813
23799
#[doc = "Floating-point round to integral exact, using current rounding mode"]
23814
23800
#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vrndx_f32)"]
@@ -23817,14 +23803,7 @@ pub fn vrndxq_f16(a: float16x8_t) -> float16x8_t {
23817
23803
#[stable(feature = "neon_intrinsics", since = "1.59.0")]
23818
23804
#[cfg_attr(test, assert_instr(frintx))]
23819
23805
pub fn vrndx_f32(a: float32x2_t) -> float32x2_t {
23820
- unsafe extern "unadjusted" {
23821
- #[cfg_attr(
23822
- any(target_arch = "aarch64", target_arch = "arm64ec"),
23823
- link_name = "llvm.rint.v2f32"
23824
- )]
23825
- fn _vrndx_f32(a: float32x2_t) -> float32x2_t;
23826
- }
23827
- unsafe { _vrndx_f32(a) }
23806
+ unsafe { simd_round_ties_even(a) }
23828
23807
}
23829
23808
#[doc = "Floating-point round to integral exact, using current rounding mode"]
23830
23809
#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vrndxq_f32)"]
@@ -23833,14 +23812,7 @@ pub fn vrndx_f32(a: float32x2_t) -> float32x2_t {
23833
23812
#[stable(feature = "neon_intrinsics", since = "1.59.0")]
23834
23813
#[cfg_attr(test, assert_instr(frintx))]
23835
23814
pub fn vrndxq_f32(a: float32x4_t) -> float32x4_t {
23836
- unsafe extern "unadjusted" {
23837
- #[cfg_attr(
23838
- any(target_arch = "aarch64", target_arch = "arm64ec"),
23839
- link_name = "llvm.rint.v4f32"
23840
- )]
23841
- fn _vrndxq_f32(a: float32x4_t) -> float32x4_t;
23842
- }
23843
- unsafe { _vrndxq_f32(a) }
23815
+ unsafe { simd_round_ties_even(a) }
23844
23816
}
23845
23817
#[doc = "Floating-point round to integral exact, using current rounding mode"]
23846
23818
#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vrndx_f64)"]
@@ -23849,14 +23821,7 @@ pub fn vrndxq_f32(a: float32x4_t) -> float32x4_t {
23849
23821
#[stable(feature = "neon_intrinsics", since = "1.59.0")]
23850
23822
#[cfg_attr(test, assert_instr(frintx))]
23851
23823
pub fn vrndx_f64(a: float64x1_t) -> float64x1_t {
23852
- unsafe extern "unadjusted" {
23853
- #[cfg_attr(
23854
- any(target_arch = "aarch64", target_arch = "arm64ec"),
23855
- link_name = "llvm.rint.v1f64"
23856
- )]
23857
- fn _vrndx_f64(a: float64x1_t) -> float64x1_t;
23858
- }
23859
- unsafe { _vrndx_f64(a) }
23824
+ unsafe { simd_round_ties_even(a) }
23860
23825
}
23861
23826
#[doc = "Floating-point round to integral exact, using current rounding mode"]
23862
23827
#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vrndxq_f64)"]
@@ -23865,14 +23830,7 @@ pub fn vrndx_f64(a: float64x1_t) -> float64x1_t {
23865
23830
#[stable(feature = "neon_intrinsics", since = "1.59.0")]
23866
23831
#[cfg_attr(test, assert_instr(frintx))]
23867
23832
pub fn vrndxq_f64(a: float64x2_t) -> float64x2_t {
23868
- unsafe extern "unadjusted" {
23869
- #[cfg_attr(
23870
- any(target_arch = "aarch64", target_arch = "arm64ec"),
23871
- link_name = "llvm.rint.v2f64"
23872
- )]
23873
- fn _vrndxq_f64(a: float64x2_t) -> float64x2_t;
23874
- }
23875
- unsafe { _vrndxq_f64(a) }
23833
+ unsafe { simd_round_ties_even(a) }
23876
23834
}
23877
23835
#[doc = "Floating-point round to integral, using current rounding mode"]
23878
23836
#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vrndxh_f16)"]
0 commit comments