Lines Matching +full:- +full:f

76     float f;  in myNaNf()  local
77 memcpy(&f, &v, sizeof(f)); in myNaNf()
78 Q_ASSERT(qIsNaN(f)); in myNaNf()
79 return f; in myNaNf()
85 float f; in myInff() local
86 memcpy(&f, &v, sizeof(f)); in myInff()
87 Q_ASSERT(qIsInf(f)); in myInff()
88 return f; in myInff()
94 float f; in myNInff() local
95 memcpy(&f, &v, sizeof(f)); in myNInff()
96 Q_ASSERT(qIsInf(f)); in myNInff()
97 return f; in myNInff()
103 double f; in myNaN() local
104 memcpy(&f, &v, sizeof(f)); in myNaN()
105 Q_ASSERT(qIsNaN(f)); in myNaN()
106 return f; in myNaN()
112 double f; in myInf() local
113 memcpy(&f, &v, sizeof(f)); in myInf()
114 Q_ASSERT(qIsInf(f)); in myInf()
115 return f; in myInf()
121 double f; in myNInf() local
122 memcpy(&f, &v, sizeof(f)); in myNInf()
123 Q_ASSERT(qIsInf(f)); in myNInf()
124 return f; in myNInf()
129 return QByteArray::fromRawData(data, N - 1); in raw()
314 // signed integers containing non-negative numbers in addFixedData()
328 QTest::newRow("-1") << raw("\x20") << QVariant(-1); in addFixedData()
329 QTest::newRow("-2") << raw("\x21") << QVariant(-2); in addFixedData()
330 QTest::newRow("-24") << raw("\x37") << QVariant(-24); in addFixedData()
331 QTest::newRow("-25") << raw("\x38\x18") << QVariant(-25); in addFixedData()
332 QTest::newRow("-UINT8_MAX") << raw("\x38\xff") << QVariant(-256); in addFixedData()
333 QTest::newRow("-UINT8_MAX-1") << raw("\x39\x01\x00") << QVariant(-257); in addFixedData()
334 QTest::newRow("-UINT16_MAX") << raw("\x39\xff\xff") << QVariant(-65536); in addFixedData()
335 QTest::newRow("-UINT16_MAX-1") << raw("\x3a\0\1\x00\x00") << QVariant(-65537); in addFixedData()
336 QTest::newRow("-UINT32_MAX") << raw("\x3a\xff\xff\xff\xff") << QVariant(Q_INT64_C(-4294967296)); in addFixedData()
337 … QTest::newRow("-UINT32_MAX-1") << raw("\x3b\0\0\0\1\0\0\0\0") << QVariant(Q_INT64_C(-4294967297)); in addFixedData()
346 QTest::newRow("negativeUINT8_MAX-1") << raw("\x39\x01\x00") << neg(257); in addFixedData()
348 QTest::newRow("negativeUINT16_MAX-1") << raw("\x3a\0\1\x00\x00") << neg(65537); in addFixedData()
350 …QTest::newRow("negativeUINT32_MAX-1") << raw("\x3b\0\0\0\1\0\0\0\0") << neg(Q_UINT64_C(4294967297)… in addFixedData()
369 QTest::newRow("-1.f16") << raw("\xf9\xbc\0") << QVariant::fromValue(qfloat16(-1)); in addFixedData()
372 QTest::newRow("-inf_f16") << raw("\xf9\xfc\0") << QVariant::fromValue<qfloat16>(myNInff()); in addFixedData()
376 QTest::newRow("0.f") << raw("\xfa\0\0\0\0") << QVariant::fromValue(0.f); in addFixedData()
378 QTest::newRow("-1.f") << raw("\xfa\xbf\x80\0\0") << QVariant::fromValue(-1.f); in addFixedData()
379 QTest::newRow("-1.") << raw("\xfb\xbf\xf0\0\0\0\0\0\0") << QVariant(-1.); in addFixedData()
380 QTest::newRow("16777215.f") << raw("\xfa\x4b\x7f\xff\xff") << QVariant::fromValue(16777215.f); in addFixedData()
382 QTest::newRow("-16777215.f") << raw("\xfa\xcb\x7f\xff\xff") << QVariant(-16777215.f); in addFixedData()
383 …QTest::newRow("-16777215.") << raw("\xfb\xc1\x6f\xff\xff\xe0\0\0\0") << QVariant::fromValue(-16777… in addFixedData()
387 QTest::newRow("-inf_f") << raw("\xfa\xff\x80\0\0") << QVariant::fromValue<float>(myNInff()); in addFixedData()
388 QTest::newRow("-inf") << raw("\xfb\xff\xf0\0\0\0\0\0\0") << QVariant(myNInf()); in addFixedData()
398 QTest::newRow("bytestring1-nul") << raw("\x41\0") << QVariant(QByteArray("", 1)); in addStringsData()
408 QTest::newRow("textstring1-nul") << raw("\x61\0") << QVariant(QString::fromLatin1("", 1)); in addStringsData()
421 QTest::newRow("array-0") << raw("\x81\0") << make_list(0); in addArraysAndMaps()
422 QTest::newRow("array-{0-0}") << raw("\x82\0\0") << make_list(0, 0); in addArraysAndMaps()
423 QTest::newRow("array-Hello") << raw("\x81\x65Hello") << make_list("Hello"); in addArraysAndMaps()
424 QTest::newRow("array-array-0") << raw("\x81\x81\0") << make_list(make_list(0)); in addArraysAndMaps()
425 QTest::newRow("array-array-{0-0}") << raw("\x81\x82\0\0") << make_list(make_list(0, 0)); in addArraysAndMaps()
426 QTest::newRow("array-array-0-0") << raw("\x82\x81\0\0") << make_list(make_list(0),0); in addArraysAndMaps()
427 QTest::newRow("array-array-Hello") << raw("\x81\x81\x65Hello") << make_list(make_list("Hello")); in addArraysAndMaps()
429 QTest::newRow("map-0:0") << raw("\xa1\0\0") << make_map({{0,0}}); in addArraysAndMaps()
430 QTest::newRow("map-0:0-1:1") << raw("\xa2\0\0\1\1") << make_map({{0,0}, {1,1}}); in addArraysAndMaps()
431 …QTest::newRow("map-0:{map-0:0-1:1}") << raw("\xa1\0\xa2\0\0\1\1") << make_map({{0, make_map({{0,0}… in addArraysAndMaps()
433 QTest::newRow("array-map1") << raw("\x81\xa1\0\0") << make_list(make_map({{0,0}})); in addArraysAndMaps()
434 …QTest::newRow("array-map2") << raw("\x82\xa1\0\0\xa1\1\1") << make_list(make_map({{0,0}}), make_ma… in addArraysAndMaps()
436 QTest::newRow("map-array1") << raw("\xa1\x62oc\x81\0") << make_map({{"oc", make_list(0)}}); in addArraysAndMaps()
437 …QTest::newRow("map-array2") << raw("\xa1\x62oc\x84\0\1\2\3") << make_map({{"oc", make_list(0, 1, 2… in addArraysAndMaps()
438 …QTest::newRow("map-array3") << raw("\xa2\x62oc\x82\0\1\2\3") << make_map({{"oc", make_list(0, 1)},… in addArraysAndMaps()
444 QTest::newRow("_array-0") << raw("\x9f\0\xff") << make_ilarray({0}); in addArraysAndMaps()
445 QTest::newRow("_array-{0-0}") << raw("\x9f\0\0\xff") << make_ilarray({0, 0}); in addArraysAndMaps()
446 QTest::newRow("_array-Hello") << raw("\x9f\x65Hello\xff") << make_ilarray({"Hello"}); in addArraysAndMaps()
447 QTest::newRow("_array-array-0") << raw("\x9f\x81\0\xff") << make_ilarray({make_list(0)}); in addArraysAndMaps()
448 …QTest::newRow("_array-_array-0") << raw("\x9f\x9f\0\xff\xff") << make_ilarray({make_ilarray({0})}); in addArraysAndMaps()
449 …QTest::newRow("_array-_array-{0-0}") << raw("\x9f\x9f\0\0\xff\xff") << make_ilarray({make_ilarray(… in addArraysAndMaps()
450 …QTest::newRow("_array-_array-0-0") << raw("\x9f\x9f\0\xff\0\xff") << make_ilarray({make_ilarray({0… in addArraysAndMaps()
451 …QTest::newRow("_array-_array-Hello") << raw("\x9f\x9f\x65Hello\xff\xff") << make_ilarray({make_ila… in addArraysAndMaps()
453 QTest::newRow("_map-0:0") << raw("\xbf\0\0\xff") << make_ilmap({{0,0}}); in addArraysAndMaps()
454 QTest::newRow("_map-0:0-1:1") << raw("\xbf\0\0\1\1\xff") << make_ilmap({{0,0}, {1,1}}); in addArraysAndMaps()
455 …QTest::newRow("_map-0:{map-0:0-1:1}") << raw("\xbf\0\xa2\0\0\1\1\xff") << make_ilmap({{0, make_map… in addArraysAndMaps()
456 …QTest::newRow("_map-0:{_map-0:0-1:1}") << raw("\xbf\0\xbf\0\0\1\1\xff\xff") << make_ilmap({{0, mak… in addArraysAndMaps()
458 QTest::newRow("_array-map1") << raw("\x9f\xa1\0\0\xff") << make_ilarray({make_map({{0,0}})}); in addArraysAndMaps()
459 …QTest::newRow("_array-_map1") << raw("\x9f\xbf\0\0\xff\xff") << make_ilarray({make_ilmap({{0,0}})}… in addArraysAndMaps()
460 …QTest::newRow("_array-map2") << raw("\x9f\xa1\0\0\xa1\1\1\xff") << make_ilarray({make_map({{0,0}})… in addArraysAndMaps()
461 …QTest::newRow("_array-_map2") << raw("\x9f\xbf\0\0\xff\xbf\1\1\xff\xff") << make_ilarray({make_ilm… in addArraysAndMaps()
463 … QTest::newRow("_map-array1") << raw("\xbf\x62oc\x81\0\xff") << make_ilmap({{"oc", make_list(0)}}); in addArraysAndMaps()
464 …QTest::newRow("_map-_array1") << raw("\xbf\x62oc\x9f\0\xff\xff") << make_ilmap({{"oc", make_ilarra… in addArraysAndMaps()
465 …QTest::newRow("_map-array2") << raw("\xbf\x62oc\x84\0\1\2\3\xff") << make_ilmap({{"oc", make_list(… in addArraysAndMaps()
466 …QTest::newRow("_map-_array2") << raw("\xbf\x62oc\x9f\0\1\2\3\xff\xff") << make_ilmap({{"oc", make_… in addArraysAndMaps()
467 …QTest::newRow("_map-array3") << raw("\xbf\x62oc\x82\0\1\2\3\xff") << make_ilmap({{"oc", make_list(… in addArraysAndMaps()
468 …QTest::newRow("_map-_array3") << raw("\xbf\x62oc\x9f\0\1\xff\2\3\xff") << make_ilmap({{"oc", make_… in addArraysAndMaps()
471 QTest::newRow("array-1(0)") << raw("\x81\xc1\0") << make_list(QVariant::fromValue(Tag{1, 0})); in addArraysAndMaps()
472 …QTest::newRow("array-1(map)") << raw("\x81\xc1\xa0") << make_list(QVariant::fromValue(Tag{1, make_… in addArraysAndMaps()
473 …QTest::newRow("map-1(2):3(4)") << raw("\xa1\xc1\2\xc3\4") << make_map({{QVariant::fromValue(Tag{1,… in addArraysAndMaps()
716 QTest::newRow("half-float") << 25; in illegalSimpleType_data()