Skip to content

Commit 3d197bb

Browse files
committed
Remove redundant definitions
Fixes #1446
1 parent c5b0076 commit 3d197bb

File tree

3 files changed

+2
-30
lines changed

3 files changed

+2
-30
lines changed

crates/core_arch/src/arm/neon.rs

-28
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
use crate::core_arch::arm_shared::neon::*;
2-
use crate::core_arch::simd::{f32x4, i32x4, u32x4};
3-
use crate::core_arch::simd_llvm::*;
42
use crate::mem::{align_of, transmute};
53

64
#[cfg(test)]
75
use stdarch_test::assert_instr;
86

9-
#[allow(non_camel_case_types)]
10-
pub(crate) type p8 = u8;
11-
#[allow(non_camel_case_types)]
12-
pub(crate) type p16 = u16;
13-
147
#[allow(improper_ctypes)]
158
extern "unadjusted" {
169
#[link_name = "llvm.arm.neon.vbsl.v8i8"]
@@ -794,27 +787,6 @@ pub unsafe fn vtbx4_p8(a: poly8x8_t, b: poly8x8x4_t, c: uint8x8_t) -> poly8x8_t
794787
))
795788
}
796789

797-
// These float-to-int implementations have undefined behaviour when `a` overflows
798-
// the destination type. Clang has the same problem: https://llvm.org/PR47510
799-
800-
/// Floating-point Convert to Signed fixed-point, rounding toward Zero (vector)
801-
#[inline]
802-
#[target_feature(enable = "neon")]
803-
#[target_feature(enable = "v7")]
804-
#[cfg_attr(test, assert_instr("vcvt.s32.f32"))]
805-
pub unsafe fn vcvtq_s32_f32(a: float32x4_t) -> int32x4_t {
806-
transmute(simd_cast::<_, i32x4>(transmute::<_, f32x4>(a)))
807-
}
808-
809-
/// Floating-point Convert to Unsigned fixed-point, rounding toward Zero (vector)
810-
#[inline]
811-
#[target_feature(enable = "neon")]
812-
#[target_feature(enable = "v7")]
813-
#[cfg_attr(test, assert_instr("vcvt.u32.f32"))]
814-
pub unsafe fn vcvtq_u32_f32(a: float32x4_t) -> uint32x4_t {
815-
transmute(simd_cast::<_, u32x4>(transmute::<_, f32x4>(a)))
816-
}
817-
818790
/// Shift Left and Insert (immediate)
819791
#[inline]
820792
#[target_feature(enable = "neon,v7")]

crates/core_arch/src/wasm32/relaxed_simd.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ pub fn i32x4_relaxed_dot_i8x16_i7x16_add(a: v128, b: v128, c: v128) -> v128 {
303303
}
304304

305305
#[cfg(test)]
306-
pub mod tests {
306+
mod tests {
307307
use super::super::simd128::*;
308308
use super::*;
309309
use core::ops::{Add, Div, Mul, Neg, Sub};

crates/core_arch/src/wasm32/simd128.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4226,7 +4226,7 @@ pub fn f64x2_promote_low_f32x4(a: v128) -> v128 {
42264226
}
42274227

42284228
#[cfg(test)]
4229-
pub mod tests {
4229+
mod tests {
42304230
use super::*;
42314231
use core::ops::{Add, Div, Mul, Neg, Sub};
42324232
use std;

0 commit comments

Comments
 (0)