Skip to content

Commit c0deddb

Browse files
committed
Move macros
1 parent 96593bf commit c0deddb

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

crates/core_arch/src/arm/neon.rs

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,50 +1657,6 @@ pub unsafe fn vextq_s8(a: int8x16_t, b: int8x16_t, n: i32) -> int8x16_t {
16571657
}
16581658
}
16591659

1660-
//immediate value: 0:16
1661-
#[allow(unused)]
1662-
macro_rules! constify_imm4 {
1663-
($imm8:expr, $expand:ident) => {
1664-
#[allow(overflowing_literals)]
1665-
match ($imm8) & 0b1111 {
1666-
0 => $expand!(0),
1667-
1 => $expand!(1),
1668-
2 => $expand!(2),
1669-
3 => $expand!(3),
1670-
4 => $expand!(4),
1671-
5 => $expand!(5),
1672-
6 => $expand!(6),
1673-
7 => $expand!(7),
1674-
8 => $expand!(8),
1675-
9 => $expand!(9),
1676-
10 => $expand!(10),
1677-
11 => $expand!(11),
1678-
12 => $expand!(12),
1679-
13 => $expand!(13),
1680-
14 => $expand!(14),
1681-
_ => $expand!(15),
1682-
}
1683-
};
1684-
}
1685-
1686-
//immediate value: 0:7
1687-
#[allow(unused)]
1688-
macro_rules! constify_imm3 {
1689-
($imm8:expr, $expand:ident) => {
1690-
#[allow(overflowing_literals)]
1691-
match ($imm8) & 0b111 {
1692-
0 => $expand!(0),
1693-
1 => $expand!(1),
1694-
2 => $expand!(2),
1695-
3 => $expand!(3),
1696-
4 => $expand!(4),
1697-
5 => $expand!(5),
1698-
6 => $expand!(6),
1699-
_ => $expand!(7),
1700-
}
1701-
};
1702-
}
1703-
17041660
//uint8x16_t vshrq_n_u8 (uint8x16_t a, const int n)
17051661
#[inline]
17061662
#[target_feature(enable = "neon")]

0 commit comments

Comments
 (0)