Home
last modified time | relevance | path

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

/openbmc/qemu/tests/unit/
H A Dcheck-qnum.c60 qn = qnum_from_double(value); in qnum_from_double_test()
118 qn = qnum_from_double(0.42); in qnum_get_uint_test()
131 qn = qnum_from_double(0); in qobject_to_qnum_test()
147 qn = qnum_from_double(0.42); in qnum_to_string_test()
153 qn = qnum_from_double(2.718281828459045); in qnum_to_string_test()
H A Dcheck-qobject.c85 g_autoptr(QNum) d0 = qnum_from_double(0.0); in qobject_is_equal_num_test()
86 g_autoptr(QNum) dnan = qnum_from_double(NAN); in qobject_is_equal_num_test()
89 g_autoptr(QNum) dm42 = qnum_from_double(-42.0); in qobject_is_equal_num_test()
174 qlist_append(list_0, qnum_from_double(NAN)); in qobject_is_equal_list_test()
240 qdict_put(dict_0, "NaN", qnum_from_double(NAN)); in qobject_is_equal_dict_test()
248 g_autoptr(QNum) d0 = qnum_from_double(0.0); in qobject_is_equal_conversion_test()
/openbmc/qemu/include/qapi/qmp/
H A Dqnum.h63 QNum *qnum_from_double(double value);
/openbmc/qemu/qobject/
H A Dqnum.c56 QNum *qnum_from_double(double value) in qnum_from_double() function
H A Djson-parser.c475 return QOBJECT(qnum_from_double(va_arg(*ctxt->ap, double))); in parse_interpolation()
527 return QOBJECT(qnum_from_double(strtod(token->str, NULL))); in parse_literal()
/openbmc/qemu/qapi/
H A Dqobject-output-visitor.c191 qobject_output_add(qov, name, qnum_from_double(*obj)); in qobject_output_type_number()
/openbmc/qemu/monitor/
H A Dhmp.c957 qdict_put(qdict, key, qnum_from_double(val)); in monitor_parse_arguments()