* Aligns input parameter to the next power of 2 * * @param x * The integer value to align * * @return * Input parameter aligned to the next power of 2 */
| 618 | * Input parameter aligned to the next power of 2 |
| 619 | */ |
| 620 | static inline uint32_t |
| 621 | rte_align32pow2(uint32_t x) |
| 622 | { |
| 623 | x--; |
| 624 | x = rte_combine32ms1b(x); |
| 625 | |
| 626 | return x + 1; |
| 627 | } |
| 628 | |
| 629 | /** |
| 630 | * Aligns input parameter to the previous power of 2 |