Home
last modified time | relevance | path

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

/qemu/include/qemu/
H A Dcutils.h11 const char *si_prefix(unsigned int exp10);
/qemu/tests/unit/
H A Dtest-cutils.c3614 g_assert_cmpstr(si_prefix(-18), ==, "a"); in test_si_prefix()
3617 g_assert_cmpstr(si_prefix(-9), ==, "n"); in test_si_prefix()
3618 g_assert_cmpstr(si_prefix(-6), ==, "u"); in test_si_prefix()
3619 g_assert_cmpstr(si_prefix(-3), ==, "m"); in test_si_prefix()
3620 g_assert_cmpstr(si_prefix(0), ==, ""); in test_si_prefix()
3621 g_assert_cmpstr(si_prefix(3), ==, "K"); in test_si_prefix()
3622 g_assert_cmpstr(si_prefix(6), ==, "M"); in test_si_prefix()
3623 g_assert_cmpstr(si_prefix(9), ==, "G"); in test_si_prefix()
3624 g_assert_cmpstr(si_prefix(12), ==, "T"); in test_si_prefix()
3625 g_assert_cmpstr(si_prefix(15), ==, "P"); in test_si_prefix()
[all …]
/qemu/stats/
H A Dstats-hmp-cmds.c34 monitor_puts(mon, si_prefix(value->exponent)); in print_stats_schema_value()
/qemu/util/
H A Dcutils.c951 const char *si_prefix(unsigned int exp10) in si_prefix() function
1004 return g_strdup_printf("%0.3g %sHz", freq, si_prefix(exp10)); in freq_to_str()