Searched refs:log2 (Results 1 – 12 of 12) sorted by relevance
11 from math import log222 logk = int(log2(kb) / 10)
58 rte_red_log2_1_minus_Wq[index] = (uint16_t) round(-1.0 * scale * log2(1.0 - Wq)); in __rte_red_init_tables()
541 size_t size, log2; in create_ring() local545 log2 = sizeof(size) * 8 - __builtin_clzl(size - 1); in create_ring()546 size = 1u << log2; in create_ring()
240 base = (uint32_t)ceilf(log2(i64)); in test_log2()248 base = (uint32_t)ceilf(log2((uint32_t)i)); in test_log2()
382 size_t log2; in malloc_elem_free_list_index() local389 log2 = sizeof(size) * 8 - __builtin_clzl(size - 1); in malloc_elem_free_list_index()392 index = (log2 - MALLOC_MINSIZE_LOG2 + MALLOC_LOG2_INCREMENT - 1) / in malloc_elem_free_list_index()
112 * The log2 value of the size of the RSS redirection table for the134 collision generation task requires only the ``log2(RETA_SZ)`` bits in the136 generated for the required ``log2(RETA_SZ)`` least significant bits of the171 with length ``N = log2(rss_reta_sz)`` (for the ``rss_reta_sz`` provided at
1406 In the dropper module, a look-up table is used to compute log2(1-wq) for each value of wq supported…
208 int log2 = rte_log2_u64(page_sz); in pagesz_flags() local209 return log2 << RTE_MAP_HUGE_SHIFT; in pagesz_flags()
97 unsigned int log2 = cxgbe_fls(mtu); in t4_load_mtus() local99 if (!(mtu & ((1 << log2) >> 2))) /* round */ in t4_load_mtus()100 log2--; in t4_load_mtus()102 V_MTUWIDTH(log2) | V_MTUVALUE(mtu)); in t4_load_mtus()
797 int log2 = rte_log2_u64(page_sz); in pagesz_flags() local799 return (log2 << HUGE_SHIFT); in pagesz_flags()
708 int my_logtype2 = rte_log_register("myapp.log2");713 /* only display messages higher than NOTICE for log2 (default
3060 * ``wq_log2_g``: Negated log2 of queue weight (wq)3065 * ``wq_log2_y``: Negated log2 of queue weight (wq)3070 * ``wq_log2_r``: Negated log2 of queue weight (wq)