| 28 | } |
| 29 | |
| 30 | static int |
| 31 | test_clz64(void) |
| 32 | { |
| 33 | size_t leading; |
| 34 | uint64_t v = 0xffffffffffffffff; |
| 35 | |
| 36 | for (leading = 0; v; leading++) { |
| 37 | RTE_TEST_ASSERT(rte_clz64(v) == leading, |
| 38 | "Unexpected count."); |
| 39 | v >>= 1; |
| 40 | } |
| 41 | |
| 42 | return 0; |
| 43 | } |
| 44 | |
| 45 | static int |
| 46 | test_ctz32(void) |
nothing calls this directly
no test coverage detected