Skip to content

Commit

Permalink
Fix target arm-linux-androideabi
Browse files Browse the repository at this point in the history
Move int16x2_t and uint16x2_t into dsp.rs and export to simd32.rs.
  • Loading branch information
paoloteti authored and gnzlbg committed Mar 2, 2019
1 parent 7454388 commit f649570
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 7 additions & 1 deletion crates/core_arch/src/acle/dsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@
use stdsimd_test::assert_instr;

use crate::mem::transmute;
use core_arch::acle::simd32::int16x2_t;

types! {
/// ARM-specific 32-bit wide vector of two packed `i16`.
pub struct int16x2_t(i16, i16);
/// ARM-specific 32-bit wide vector of two packed `u16`.
pub struct uint16x2_t(u16, u16);
}

extern "C" {
#[link_name = "llvm.arm.smulbb"]
Expand Down
5 changes: 1 addition & 4 deletions crates/core_arch/src/acle/simd32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,13 @@
use stdsimd_test::assert_instr;

use crate::mem::transmute;
use core_arch::acle::dsp::int16x2_t;

types! {
/// ARM-specific 32-bit wide vector of four packed `i8`.
pub struct int8x4_t(i8, i8, i8, i8);
/// ARM-specific 32-bit wide vector of four packed `u8`.
pub struct uint8x4_t(u8, u8, u8, u8);
/// ARM-specific 32-bit wide vector of two packed `i16`.
pub struct int16x2_t(i16, i16);
/// ARM-specific 32-bit wide vector of two packed `u16`.
pub struct uint16x2_t(u16, u16);
}

macro_rules! dsp_call {
Expand Down

0 comments on commit f649570

Please sign in to comment.