This aligns the specified "address", upwards, to "align". In order to use this function, "align" must have a value that is a power of two (2).
(address: usize, align: usize)
| 180 | |
| 181 | // This aligns the specified "address", upwards, to "align". In order to use this function, "align" must have a value that is a power of two (2). |
| 182 | fn alignup(address: usize, align: usize) -> usize |
| 183 | { |
| 184 | (address + align - 1) & !(align - 1) |
| 185 | } |
| 186 | |
| 187 | |
| 188 | // Free memory |
no outgoing calls
no test coverage detected