Searched refs:vdouble (Results 1 – 8 of 8) sorted by relevance
/third_party/ejdb/src/jbl/tests/ |
D | jbl_test_binn2.c | 1405 double vdouble; in test_value_conversion() local 1490 CU_ASSERT(binn_get_double(value, &vdouble) == TRUE); in test_value_conversion() 1491 CU_ASSERT(AlmostEqualFloats(vdouble, 123, 4) == TRUE); in test_value_conversion() 1516 CU_ASSERT(binn_get_double(value, &vdouble) == TRUE); in test_value_conversion() 1517 CU_ASSERT(AlmostEqualFloats(vdouble, -456, 4) == TRUE); in test_value_conversion() 1542 CU_ASSERT(binn_get_double(value, &vdouble) == TRUE); in test_value_conversion() 1543 CU_ASSERT(AlmostEqualFloats(vdouble, -4.56, 4) == TRUE); in test_value_conversion() 1627 CU_ASSERT(binn_get_double(value, &vdouble) == TRUE); in test_value_conversion() 1628 CU_ASSERT(AlmostEqualFloats(vdouble, -345, 4) == TRUE); in test_value_conversion() 1657 CU_ASSERT(binn_get_double(value, &vdouble) == TRUE); in test_value_conversion() [all …]
|
D | jbl_test_binn1.c | 621 double vdouble; in _test2() local 792 CU_ASSERT(value.vdouble == 1.23); in _test2() 804 CU_ASSERT(value.vdouble == 4.56); in _test2() 816 CU_ASSERT(value.vdouble == 7.89); in _test2() 947 CU_ASSERT(binn_list_get_double(list, 2, &vdouble) == TRUE); in _test2() 948 CU_ASSERT(vdouble == 1.23); in _test2() 950 CU_ASSERT(binn_map_get_double(map, 1002, &vdouble) == TRUE); in _test2() 951 CU_ASSERT(vdouble == 4.56); in _test2() 953 CU_ASSERT(binn_object_get_double(obj, "double", &vdouble) == TRUE); in _test2() 954 CU_ASSERT(vdouble == 7.89); in _test2()
|
/third_party/ejdb/src/jbl/ |
D | binn.c | 1325 value->vdouble = atof((const char*) value->ptr); // converts from string to double in GetValue() 1326 value->ptr = &value->vdouble; in GetValue() 2913 double vdouble; in is_bool_str() local 2944 vdouble = atof(str); in is_bool_str() 2945 *pbool = (vdouble != 0) ? TRUE : FALSE; in is_bool_str() 2972 *pint = round(value->vdouble); in binn_get_int32() 3004 *pint = round(value->vdouble); in binn_get_int64() 3041 *pfloat = value->vdouble; in binn_get_double() 3081 *pbool = (value->vdouble != 0) ? TRUE : FALSE; in binn_get_bool() 3106 value->vdouble = value->vfloat; in binn_get_str() [all …]
|
D | binn.h | 255 double vdouble; member 575 #define binn_set_double(item, value) do { (item)->type = BINN_DOUBLE; (item)->vdouble = value; \ 576 (item)->ptr = &((item)->vdouble); } while (0)
|
D | jbl.c | 741 dv = bn->vdouble; in _jbl_as_json() 873 return (int64_t) jbl->bn.vdouble; in jbl_get_i64() 887 return jbl->bn.vdouble; in jbl_get_f64() 1967 n->vf64 = bv->vdouble; in _jbl_create_node()
|
/third_party/glib/glib/ |
D | gtestutils.c | 3900 double vdouble) in gstring_append_double() argument 3902 union { double vdouble; guint64 vuint64; } u; in gstring_append_double() member 3903 u.vdouble = vdouble; in gstring_append_double() 3935 union { guint64 vuint64; double vdouble; } u; in net_double() member 3940 return u.vdouble; in net_double()
|
/third_party/glib/glib/tests/ |
D | testing.c | 423 long double vdouble, drange; member 436 shared_rand_state.vdouble = g_test_rand_double(); in test_rand1() 453 g_assert_cmpfloat (shared_rand_state.vdouble, ==, g_test_rand_double()); in test_rand2()
|
/third_party/ejdb/src/jql/ |
D | jql.c | 459 qval->vf64 = vbinn->vdouble; in _jql_binn_to_jqval()
|