Home
last modified time | relevance | path

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

/qemu/tests/unit/
H A Dtest-cutils.c3337 do_strtosz("0", 0, 0, 1); in test_qemu_strtosz_simple()
3340 do_strtosz("08", 0, 8, 2); in test_qemu_strtosz_simple()
3366 do_strtosz("0x0", 0, 0, 3); in test_qemu_strtosz_hex()
3376 do_strtosz("1", 0, 1, 1); in test_qemu_strtosz_units()
3381 do_strtosz("1B", 0, 1, 2); in test_qemu_strtosz_units()
3386 do_strtosz("1K", 0, KiB, 2); in test_qemu_strtosz_units()
3391 do_strtosz("1M", 0, MiB, 2); in test_qemu_strtosz_units()
3392 do_strtosz("1G", 0, GiB, 2); in test_qemu_strtosz_units()
3393 do_strtosz("1T", 0, TiB, 2); in test_qemu_strtosz_units()
3423 do_strtosz("1." in test_qemu_strtosz_float()
[all …]
/qemu/util/
H A Dcutils.c223 static int do_strtosz(const char *nptr, const char **end, in do_strtosz() function
370 return do_strtosz(nptr, end, 'B', 1024, result); in qemu_strtosz()
375 return do_strtosz(nptr, end, 'M', 1024, result); in qemu_strtosz_MiB()
380 return do_strtosz(nptr, end, 'B', 1000, result); in qemu_strtosz_metric()