MCPcopy Create free account
hub / github.com/coreboot/coreboot / align_up

Function align_up

util/cbfstool/common.h:26–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#define unused __attribute__((unused))
25
26static inline uint32_t align_up(uint32_t value, uint32_t align)
27{
28 if (value % align)
29 value += align - (value % align);
30 return value;
31}
32
33/* Buffer and file I/O */
34struct buffer {

Callers 7

cbfs_createFunction · 0.70
cbfs_legacy_image_createFunction · 0.70
cbfs_copy_instanceFunction · 0.70
cbfs_find_next_entryFunction · 0.70
absolute_alignFunction · 0.70
cbfs_locate_entryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected