* Searches the input parameter for the least significant set bit * (starting from zero). * If a least significant 1 bit is found, its bit index is returned. * If the content of the input parameter is zero, then the content of the return * value is undefined. * @param v * input parameter, should not be zero. * @return * least significant set bit in the input parameter. */
| 525 | * least significant set bit in the input parameter. |
| 526 | */ |
| 527 | static inline uint32_t |
| 528 | rte_bsf64(uint64_t v) |
| 529 | { |
| 530 | return (uint32_t)rte_ctz64(v); |
| 531 | } |
| 532 | |
| 533 | /** |
| 534 | * Searches the input parameter for the least significant set bit |