* Combines 64b inputs most significant set bits into the least * significant bits to construct a value with the same MSBs as x * but all 1's under it. * * @param v * The integer whose MSBs need to be combined with its LSBs * @return * The combined value. */
| 460 | * The combined value. |
| 461 | */ |
| 462 | static inline uint64_t |
| 463 | rte_combine64ms1b(uint64_t v) |
| 464 | { |
| 465 | v |= v >> 1; |
| 466 | v |= v >> 2; |
| 467 | v |= v >> 4; |
| 468 | v |= v >> 8; |
| 469 | v |= v >> 16; |
| 470 | v |= v >> 32; |
| 471 | |
| 472 | return v; |
| 473 | } |
| 474 | |
| 475 | /** |
| 476 | * Searches the input parameter for the least significant set bit |
no outgoing calls
no test coverage detected