* Aligns 64b input parameter to the previous power of 2 * * @param v * The 64b value to align * * @return * Input parameter aligned to the previous power of 2 */
| 671 | * Input parameter aligned to the previous power of 2 |
| 672 | */ |
| 673 | static inline uint64_t |
| 674 | rte_align64prevpow2(uint64_t v) |
| 675 | { |
| 676 | v = rte_combine64ms1b(v); |
| 677 | |
| 678 | return v - (v >> 1); |
| 679 | } |
| 680 | |
| 681 | /** |
| 682 | * Return the rounded-up log2 of a integer. |