Skip to content

Commit 07d38c5

Browse files
committed
devices/gicv3: replace manual impl of div_ceil
Signed-off-by: Sergio Lopez <[email protected]>
1 parent 3d57aeb commit 07d38c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/devices/src/legacy/gicv3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use utils::eventfd::EventFd;
1212

1313
const IRQ_NUM: u32 = 288;
1414
const MAXIRQ: u32 = 1020;
15-
const BITMAP_SZ: usize = (MAXIRQ as usize + 31) / 32;
15+
const BITMAP_SZ: usize = (MAXIRQ as usize).div_ceil(32);
1616

1717
const GIC_INTERNAL: u32 = 32;
1818

0 commit comments

Comments
 (0)