Home
last modified time | relevance | path

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

/openbmc/qemu/tests/unit/
H A Dtest-throttle.c34 static bool double_cmp(double x, double y) in double_cmp() function
54 g_assert(double_cmp(bkt.level, 0.5)); in test_leak_bucket()
60 g_assert(double_cmp(bkt.level, 0)); in test_leak_bucket()
66 g_assert(double_cmp(bkt.level, 0)); in test_leak_bucket()
73 g_assert(double_cmp(bkt.burst_level, 3.5)); in test_leak_bucket()
76 g_assert(double_cmp(bkt.burst_level, 1)); in test_leak_bucket()
79 g_assert(double_cmp(bkt.burst_level, 0)); in test_leak_bucket()
82 g_assert(double_cmp(bkt.burst_level, 0)); in test_leak_bucket()
135 g_assert(double_cmp(bkt.burst_level, 0)); in test_compute_wait()
136 g_assert(double_cmp(bkt.level, (i + 1) * (bkt.max - bkt.avg) / 10.0)); in test_compute_wait()
[all …]