1use alloy::primitives::U256; 2 3use crate::U256_1; 4 5pub fn div_rounding_up(a: U256, b: U256) -> U256 { 6 let quotient = a.wrapping_div(b); 7 let remainder = a.wrapping_rem(b); 8 if remainder.is_zero() { 9 quotient 10 } else { 11 quotient + U256_1 12 } 13}