firmware/coreboot/3rdparty/vboot/futility/vb1_helper.c
/* Return the smallest integral multiple of [alignment] that is equal
 * to or greater than [val]. Used to determine the number of
 * pages/sectors/blocks/whatever needed to contain [val]
 * items/bytes/etc. */
Return the smallest integral multiple of [alignment] that is equal
to or greater than [val].
Return the smallest integral multiple of [ alignment ] that is equal to or greater than [ val ] .
static uint32_t roundup(uint32_t val, uint32_t alignment)
{
	uint32_t rem = val % alignment;
	if (rem)
		return val + (alignment - rem);
	return val;
}
static uint32_t roundup ( uint32_t val , uint32_t alignment ) { uint32_t rem = val % alignment ; if ( rem ) return val + ( alignment - rem ) ; return val ; }
Return the smallest integral multiple of [alignment] that is equal
 to or greater than [val].
Return the smallest integral multiple of [ alignment ] that is equal to or greater than [ val ] .