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

Function rte_red_get_avg_float

dpdk/app/test/test_red.c:182–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182static double rte_red_get_avg_float(const struct rte_red_config *red_cfg,
183 struct rte_red *red)
184{
185 /**
186 * scale by 1/n and convert from fixed-point to floating-point
187 */
188 return ldexp((double)red->avg, -(RTE_RED_SCALING + red_cfg->wq_log2));
189}
190
191static void rte_red_set_avg_int(const struct rte_red_config *red_cfg,
192 struct rte_red *red,

Callers 4

func_test3Function · 0.85
func_test4Function · 0.85
func_test6Function · 0.85
perf2_testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected