Skip to content

Commit f979a5a

Browse files
committed
remove duplicate constify_imm5 macro
The comment "immediate value: -16:15" makes it look it should have been named `constify_imm_s5` but its body is a duplicate of another `constify_imm5`
1 parent 34db275 commit f979a5a

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

crates/core_arch/src/macros.rs

-42
Original file line numberDiff line numberDiff line change
@@ -320,48 +320,6 @@ macro_rules! constify_imm5 {
320320
};
321321
}
322322

323-
//immediate value: -16:15
324-
#[allow(unused)]
325-
macro_rules! constify_imm5 {
326-
($imm8:expr, $expand:ident) => {
327-
#[allow(overflowing_literals)]
328-
match ($imm8) & 0b1_1111 {
329-
0 => $expand!(0),
330-
1 => $expand!(1),
331-
2 => $expand!(2),
332-
3 => $expand!(3),
333-
4 => $expand!(4),
334-
5 => $expand!(5),
335-
6 => $expand!(6),
336-
7 => $expand!(7),
337-
8 => $expand!(8),
338-
9 => $expand!(9),
339-
10 => $expand!(10),
340-
11 => $expand!(11),
341-
12 => $expand!(12),
342-
13 => $expand!(13),
343-
14 => $expand!(14),
344-
15 => $expand!(15),
345-
16 => $expand!(16),
346-
17 => $expand!(17),
347-
18 => $expand!(18),
348-
19 => $expand!(19),
349-
20 => $expand!(20),
350-
21 => $expand!(21),
351-
22 => $expand!(22),
352-
23 => $expand!(23),
353-
24 => $expand!(24),
354-
25 => $expand!(25),
355-
26 => $expand!(26),
356-
27 => $expand!(27),
357-
28 => $expand!(28),
358-
29 => $expand!(29),
359-
30 => $expand!(30),
360-
_ => $expand!(31),
361-
}
362-
};
363-
}
364-
365323
//immediate value: 0:16
366324
#[allow(unused)]
367325
macro_rules! constify_imm4 {

0 commit comments

Comments
 (0)