* 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. */
| 484 | * least significant set bit in the input parameter. |
| 485 | */ |
| 486 | static inline uint32_t |
| 487 | rte_bsf32(uint32_t v) |
| 488 | { |
| 489 | return (uint32_t)rte_ctz32(v); |
| 490 | } |
| 491 | |
| 492 | /** |
| 493 | * Searches the input parameter for the least significant set bit |