Skip to content

Commit 0090621

Browse files
tesujiAmanieu
authored andcommitted
mips: Removed unused macro
1 parent 4452488 commit 0090621

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

crates/core_arch/src/mips/msa/macros.rs

-41
Original file line numberDiff line numberDiff line change
@@ -4275,47 +4275,6 @@ macro_rules! constify_imm5 {
42754275
};
42764276
}
42774277

4278-
//immediate value: -16:15
4279-
macro_rules! constify_imm_s5 {
4280-
($imm8:expr, $expand:ident) => {
4281-
#[allow(overflowing_literals)]
4282-
match ($imm8) & 0b1_1111 {
4283-
0 => $expand!(0),
4284-
1 => $expand!(1),
4285-
2 => $expand!(2),
4286-
3 => $expand!(3),
4287-
4 => $expand!(4),
4288-
5 => $expand!(5),
4289-
6 => $expand!(6),
4290-
7 => $expand!(7),
4291-
8 => $expand!(8),
4292-
9 => $expand!(9),
4293-
10 => $expand!(10),
4294-
11 => $expand!(11),
4295-
12 => $expand!(12),
4296-
13 => $expand!(13),
4297-
14 => $expand!(14),
4298-
16 => $expand!(-16),
4299-
17 => $expand!(-15),
4300-
18 => $expand!(-14),
4301-
19 => $expand!(-13),
4302-
20 => $expand!(-12),
4303-
21 => $expand!(-11),
4304-
22 => $expand!(-10),
4305-
23 => $expand!(-9),
4306-
24 => $expand!(-8),
4307-
25 => $expand!(-7),
4308-
26 => $expand!(-6),
4309-
27 => $expand!(-5),
4310-
28 => $expand!(-4),
4311-
29 => $expand!(-3),
4312-
30 => $expand!(-2),
4313-
31 => $expand!(-1),
4314-
_ => $expand!(15),
4315-
}
4316-
};
4317-
}
4318-
43194278
//immediate value: 0:15
43204279
macro_rules! constify_imm4 {
43214280
($imm8:expr, $expand:ident) => {

0 commit comments

Comments
 (0)