MCPcopy Create free account
hub / github.com/F-Stack/f-stack / test_ctz32

Function test_ctz32

dpdk/app/test/test_bitcount.c:45–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45static int
46test_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
60static int
61test_ctz64(void)

Callers

nothing calls this directly

Calls 1

rte_ctz32Function · 0.85

Tested by

no test coverage detected