Aligns the specified value to a multiple of alignment, whereas the alignment must be a power-of-two.
| 155 | // Aligns the specified value to a multiple of alignment, whereas the |
| 156 | // alignment must be a power-of-two. |
| 157 | static uint32_t alignPow2(uint32_t value, uint32_t alignment) { |
| 158 | return (value + alignment - 1) & ~(alignment - 1); |
| 159 | } |
| 160 | |
| 161 | void StructPackingPass::buildConstantsMap() { |
| 162 | constantsMap_.clear(); |
no outgoing calls
no test coverage detected