* Get the count of trailing 0-bits in v. * * @param v * The value. * @return * The count of trailing zero bits. */
| 284 | * The count of trailing zero bits. |
| 285 | */ |
| 286 | static inline unsigned int |
| 287 | rte_ctz32(uint32_t v) |
| 288 | { |
| 289 | unsigned long rv; |
| 290 | |
| 291 | (void)_BitScanForward(&rv, v); |
| 292 | |
| 293 | return (unsigned int)rv; |
| 294 | } |
| 295 | |
| 296 | /** |
| 297 | * Get the count of trailing 0-bits in v. |
no outgoing calls