ALIGN_DOWN_POW2
- Macro
- August 22, 2025
Table of Contents
ALIGN_DOWN_POW2
ALIGN_DOWN_POW2
Description
Aligns the given value
down to the nearest power-of-two multiple.
Parameters
Name | Direction | Description |
---|---|---|
value | in | The value to be aligned down. |
alignment | in | The power-of-two alignment boundary. |
Success
Returns power-of-two aligned-down value when alignment > 1.
Failure
Function cannot fail - returns original value if alignment <= 1.
Usage example (Cross-references)
No external code usages found in the scanned files.