Skip to content

Commit f649570

Browse files
paolotetignzlbg
authored andcommitted
Fix target arm-linux-androideabi
Move int16x2_t and uint16x2_t into dsp.rs and export to simd32.rs.
1 parent 7454388 commit f649570

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

crates/core_arch/src/acle/dsp.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@
2424
use stdsimd_test::assert_instr;
2525

2626
use crate::mem::transmute;
27-
use core_arch::acle::simd32::int16x2_t;
27+
28+
types! {
29+
/// ARM-specific 32-bit wide vector of two packed `i16`.
30+
pub struct int16x2_t(i16, i16);
31+
/// ARM-specific 32-bit wide vector of two packed `u16`.
32+
pub struct uint16x2_t(u16, u16);
33+
}
2834

2935
extern "C" {
3036
#[link_name = "llvm.arm.smulbb"]

crates/core_arch/src/acle/simd32.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,13 @@
6666
use stdsimd_test::assert_instr;
6767

6868
use crate::mem::transmute;
69+
use core_arch::acle::dsp::int16x2_t;
6970

7071
types! {
7172
/// ARM-specific 32-bit wide vector of four packed `i8`.
7273
pub struct int8x4_t(i8, i8, i8, i8);
7374
/// ARM-specific 32-bit wide vector of four packed `u8`.
7475
pub struct uint8x4_t(u8, u8, u8, u8);
75-
/// ARM-specific 32-bit wide vector of two packed `i16`.
76-
pub struct int16x2_t(i16, i16);
77-
/// ARM-specific 32-bit wide vector of two packed `u16`.
78-
pub struct uint16x2_t(u16, u16);
7976
}
8077

8178
macro_rules! dsp_call {

0 commit comments

Comments
 (0)