| 43 | } |
| 44 | |
| 45 | static int |
| 46 | test_ctz32(void) |
| 47 | { |
| 48 | size_t trailing; |
| 49 | uint32_t v = 1; |
| 50 | |
| 51 | for (trailing = 0; v; trailing++) { |
| 52 | RTE_TEST_ASSERT(rte_ctz32(v) == trailing, |
| 53 | "Unexpected count."); |
| 54 | v <<= 1; |
| 55 | } |
| 56 | |
| 57 | return 0; |
| 58 | } |
| 59 | |
| 60 | static int |
| 61 | test_ctz64(void) |
nothing calls this directly
no test coverage detected