Lines Matching refs:compare
219 uint32_t i, base, compare; in test_log2() local
223 compare = rte_log2_u32(0); in test_log2()
224 if (compare != 0) { in test_log2()
225 printf("Wrong rte_log2_u32(0) val %x, expected 0\n", compare); in test_log2()
229 compare = rte_log2_u64(0); in test_log2()
230 if (compare != 0) { in test_log2()
231 printf("Wrong rte_log2_u64(0) val %x, expected 0\n", compare); in test_log2()
241 compare = rte_log2_u64(i64); in test_log2()
242 if (base != compare) { in test_log2()
244 i64, compare, base); in test_log2()
249 compare = rte_log2_u32((uint32_t)i); in test_log2()
250 if (base != compare) { in test_log2()
252 i, compare, base); in test_log2()
255 compare = rte_log2_u64((uint64_t)i); in test_log2()
256 if (base != compare) { in test_log2()
258 i, compare, base); in test_log2()