Home
last modified time | relevance | path

Searched refs:log2 (Results 1 – 12 of 12) sorted by relevance

/dpdk/usertools/
H A Ddpdk-hugepages.py11 from math import log2
22 logk = int(log2(kb) / 10)
/dpdk/lib/sched/
H A Drte_red.c58 rte_red_log2_1_minus_Wq[index] = (uint16_t) round(-1.0 * scale * log2(1.0 - Wq)); in __rte_red_init_tables()
/dpdk/app/dumpcap/
H A Dmain.c541 size_t size, log2; in create_ring() local
545 log2 = sizeof(size) * 8 - __builtin_clzl(size - 1); in create_ring()
546 size = 1u << log2; in create_ring()
/dpdk/app/test/
H A Dtest_common.c240 base = (uint32_t)ceilf(log2(i64)); in test_log2()
248 base = (uint32_t)ceilf(log2((uint32_t)i)); in test_log2()
/dpdk/lib/eal/common/
H A Dmalloc_elem.c382 size_t log2; in malloc_elem_free_list_index() local
389 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()
/dpdk/doc/guides/prog_guide/
H A Dtoeplitz_hash_lib.rst112 * The log2 value of the size of the RSS redirection table for the
134 collision generation task requires only the ``log2(RETA_SZ)`` bits in the
136 generated for the required ``log2(RETA_SZ)`` least significant bits of the
171 with length ``N = log2(rss_reta_sz)`` (for the ``rss_reta_sz`` provided at
H A Dqos_framework.rst1406 In the dropper module, a look-up table is used to compute log2(1-wq) for each value of wq supported…
/dpdk/lib/eal/linux/
H A Deal_memalloc.c208 int log2 = rte_log2_u64(page_sz); in pagesz_flags() local
209 return log2 << RTE_MAP_HUGE_SHIFT; in pagesz_flags()
/dpdk/drivers/net/cxgbe/base/
H A Dt4_hw.c97 unsigned int log2 = cxgbe_fls(mtu); in t4_load_mtus() local
99 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()
/dpdk/app/test-pmd/
H A Dtestpmd.c797 int log2 = rte_log2_u64(page_sz); in pagesz_flags() local
799 return (log2 << HUGE_SHIFT); in pagesz_flags()
/dpdk/doc/guides/contributing/
H A Dcoding_style.rst708 int my_logtype2 = rte_log_register("myapp.log2");
713 /* only display messages higher than NOTICE for log2 (default
/dpdk/doc/guides/testpmd_app_ug/
H A Dtestpmd_funcs.rst3060 * ``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)