Function revm_interpreter::interpreter::next_multiple_of_32
source · pub fn next_multiple_of_32(x: usize) -> usize
Expand description
Rounds up x
to the closest multiple of 32. If x % 32 == 0
then x
is returned. Note, if x
is greater than usize::MAX - 31
this will return usize::MAX
which isn’t a multiple of 32.