Lines Matching refs:compare
215 uint32_t i, base, compare; in test_log2() local
219 compare = rte_log2_u32(0); in test_log2()
220 if (compare != 0) { in test_log2()
221 printf("Wrong rte_log2_u32(0) val %x, expected 0\n", compare); in test_log2()
225 compare = rte_log2_u64(0); in test_log2()
226 if (compare != 0) { in test_log2()
227 printf("Wrong rte_log2_u64(0) val %x, expected 0\n", compare); in test_log2()
237 compare = rte_log2_u64(i64); in test_log2()
238 if (base != compare) { in test_log2()
240 i64, compare, base); in test_log2()
245 compare = rte_log2_u32((uint32_t)i); in test_log2()
246 if (base != compare) { in test_log2()
248 i, compare, base); in test_log2()
251 compare = rte_log2_u64((uint64_t)i); in test_log2()
252 if (base != compare) { in test_log2()
254 i, compare, base); in test_log2()