MCPcopy Create free account
hub / github.com/Kitware/CMake / align

Function align

Source/cmXCOFF.cxx:27–31  ·  view source on GitHub ↗

Function to align a number num with align_num bytes.

Source from the content-addressed store, hash-verified

25
26// Function to align a number num with align_num bytes.
27size_t align(size_t num, int align_num)
28{
29 align_num = 1 << (align_num);
30 return (((num + align_num - 1) / align_num) * align_num);
31}
32
33class cmXCOFFInternal
34{

Callers 2

ImplMethod · 0.85
SetLibPathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…