h_assert 21 test/correctness/float16_t_comparison.cpp h_assert(one.to_bits() != onePointTwoFive.to_bits(), "bits should be different"); h_assert 22 test/correctness/float16_t_comparison.cpp h_assert(one.to_bits() == 0x3c00, "bit pattern for 1.0 is wrong"); h_assert 23 test/correctness/float16_t_comparison.cpp h_assert(onePointTwoFive.to_bits() == 0x3d00, "bit pattern for 1.25 is wrong"); h_assert 26 test/correctness/float16_t_comparison.cpp h_assert(!(one == onePointTwoFive), "comparision failed"); h_assert 27 test/correctness/float16_t_comparison.cpp h_assert(one != onePointTwoFive, "comparision failed"); h_assert 28 test/correctness/float16_t_comparison.cpp h_assert(one < onePointTwoFive, "comparision failed"); h_assert 29 test/correctness/float16_t_comparison.cpp h_assert(one <= onePointTwoFive, "comparision failed"); h_assert 30 test/correctness/float16_t_comparison.cpp h_assert(onePointTwoFive > one, "comparision failed"); h_assert 31 test/correctness/float16_t_comparison.cpp h_assert(onePointTwoFive >= one, "comparision failed"); h_assert 32 test/correctness/float16_t_comparison.cpp h_assert(one >= one, "comparision failed"); h_assert 33 test/correctness/float16_t_comparison.cpp h_assert(one == one, "comparision failed"); h_assert 37 test/correctness/float16_t_comparison.cpp h_assert(minusOne < one, "-1.0 should be < 1.0"); h_assert 38 test/correctness/float16_t_comparison.cpp h_assert(one > minusOne, "1.0 should be > -1.0"); h_assert 42 test/correctness/float16_t_comparison.cpp h_assert(nanValue.are_unordered(nanValue), "NaN must be unordered"); h_assert 43 test/correctness/float16_t_comparison.cpp h_assert(nanValue != nanValue, "NaN must not compare equal to itself"); h_assert 44 test/correctness/float16_t_comparison.cpp h_assert(!(nanValue == nanValue), "NaN must not compare equal to itself"); h_assert 47 test/correctness/float16_t_comparison.cpp h_assert(nanValue.are_unordered(one), "1.0 and NaN should be unordered"); h_assert 48 test/correctness/float16_t_comparison.cpp h_assert(nanValue.are_unordered(float16_t::make_zero(/*positive=*/true)), h_assert 50 test/correctness/float16_t_comparison.cpp h_assert(nanValue.are_unordered(float16_t::make_zero(/*positive=*/false)), h_assert 52 test/correctness/float16_t_comparison.cpp h_assert(nanValue.are_unordered(float16_t::make_infinity(/*positive=*/true)), h_assert 54 test/correctness/float16_t_comparison.cpp h_assert(nanValue.are_unordered(float16_t::make_infinity(/*positive=*/false)), h_assert 60 test/correctness/float16_t_comparison.cpp h_assert(!zeroP.are_unordered(zeroN), "+0 and -0 should be ordered"); h_assert 61 test/correctness/float16_t_comparison.cpp h_assert(zeroP == zeroN, "+0 and -0 should be treated as equal"); h_assert 66 test/correctness/float16_t_comparison.cpp h_assert(!infinityP.are_unordered(infinityN),"Infinities are ordered"); h_assert 67 test/correctness/float16_t_comparison.cpp h_assert(infinityP > infinityN, "inf+ should be > inf-"); h_assert 68 test/correctness/float16_t_comparison.cpp h_assert(infinityN < infinityP, "inf- should be < inf+"); h_assert 69 test/correctness/float16_t_comparison.cpp h_assert(one < infinityP, "1.0 should be < inf+"); h_assert 70 test/correctness/float16_t_comparison.cpp h_assert(minusOne < infinityP, "1.0 should be < inf+"); h_assert 71 test/correctness/float16_t_comparison.cpp h_assert(one > infinityN, "1.0 should be > inf-"); h_assert 72 test/correctness/float16_t_comparison.cpp h_assert(minusOne > infinityN, "-1.0 should be > inf-"); h_assert 29 test/correctness/float16_t_constants.cpp h_assert(zeroDefaultConstructor.to_bits() == zeroP.to_bits(), "Mismatch between constructors"); h_assert 30 test/correctness/float16_t_constants.cpp h_assert(zeroPStringConstructorDecimal.to_bits() == zeroP.to_bits(), "Mismatch between constructors"); h_assert 31 test/correctness/float16_t_constants.cpp h_assert(zeroPStringConstructorHex.to_bits() == zeroP.to_bits(), "Mismatch between constructors"); h_assert 32 test/correctness/float16_t_constants.cpp h_assert(zeroPFromFloat.to_bits() == zeroP.to_bits(), "Mistmatch between constructors"); h_assert 33 test/correctness/float16_t_constants.cpp h_assert(zeroPFromDouble.to_bits() == zeroP.to_bits(), "Mistmatch between constructors"); h_assert 34 test/correctness/float16_t_constants.cpp h_assert(zeroPFromInt.to_bits() == zeroP.to_bits(), "make_from_signed_int gave wrong value"); h_assert 37 test/correctness/float16_t_constants.cpp h_assert(zeroP.is_zero() && !zeroP.is_negative(), "+ve zero invalid"); h_assert 38 test/correctness/float16_t_constants.cpp h_assert(zeroP.to_bits() == 0x0000, "+ve zero invalid bits"); h_assert 39 test/correctness/float16_t_constants.cpp h_assert(zeroP.to_hex_string() == "0x0p0", "+ve zero hex string invalid"); h_assert 40 test/correctness/float16_t_constants.cpp h_assert(zeroP.to_decimal_string(0) == "0.0E+0", "+ve zero decimal string invalid"); h_assert 43 test/correctness/float16_t_constants.cpp h_assert( ((float) zeroP) == 0.0f, "+ve zero conversion to float invalid"); h_assert 44 test/correctness/float16_t_constants.cpp h_assert( ((double) zeroP) == 0.0, "+ve zero conversion to double invalid"); h_assert 47 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&zeroP) == 0x0000, h_assert 60 test/correctness/float16_t_constants.cpp h_assert(zeroNStringConstructorDecimal.to_bits() == zeroN.to_bits(), "Mismatch between constructors"); h_assert 61 test/correctness/float16_t_constants.cpp h_assert(zeroNStringConstructorHex.to_bits() == zeroN.to_bits(), "Mismatch between constructors"); h_assert 62 test/correctness/float16_t_constants.cpp h_assert(zeroNFromFloat.to_bits() == zeroN.to_bits(), "Mismatch between constructors"); h_assert 63 test/correctness/float16_t_constants.cpp h_assert(zeroNFromDouble.to_bits() == zeroN.to_bits(), "Mismatch between constructors"); h_assert 66 test/correctness/float16_t_constants.cpp h_assert(zeroN.is_zero() && zeroN.is_negative(), "-ve zero invalid"); h_assert 67 test/correctness/float16_t_constants.cpp h_assert(zeroN.to_bits() == 0x8000, "-ve zero invalid bits"); h_assert 68 test/correctness/float16_t_constants.cpp h_assert(zeroN.to_hex_string() == "-0x0p0", "-ve zero hex string invalid"); h_assert 69 test/correctness/float16_t_constants.cpp h_assert(zeroN.to_decimal_string(0) == "-0.0E+0", "-ve zero decimal string invalid"); h_assert 72 test/correctness/float16_t_constants.cpp h_assert( ((float) zeroN) == -0.0f, "-ve zero conversion to float invalid"); h_assert 73 test/correctness/float16_t_constants.cpp h_assert( ((double) zeroN) == -0.0, "-ve zero conversion to double invalid"); h_assert 76 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&zeroN) == 0x8000, h_assert 87 test/correctness/float16_t_constants.cpp h_assert(infinityPFromFloat.to_bits() == infinityP.to_bits(), "Mismatch between constructors"); h_assert 88 test/correctness/float16_t_constants.cpp h_assert(infinityPFromDouble.to_bits() == infinityP.to_bits(), "Mismatch between constructors"); h_assert 91 test/correctness/float16_t_constants.cpp h_assert(infinityP.is_infinity() && !infinityP.is_negative(), "+ve infinity invalid"); h_assert 92 test/correctness/float16_t_constants.cpp h_assert(infinityP.to_bits() == 0x7c00, "+ve infinity invalid bits"); h_assert 93 test/correctness/float16_t_constants.cpp h_assert(infinityP.to_hex_string() == "infinity", "+ve infinity hex string invalid"); h_assert 94 test/correctness/float16_t_constants.cpp h_assert(infinityP.to_decimal_string() == "+Inf", "+ve infinity decimal string invalid"); h_assert 99 test/correctness/float16_t_constants.cpp h_assert(std::isinf(infinityPf) & !std::signbit(infinityPf), h_assert 101 test/correctness/float16_t_constants.cpp h_assert(std::isinf(infinityPd) & !std::signbit(infinityPd), h_assert 105 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&infinityP) == 0x7c00, h_assert 116 test/correctness/float16_t_constants.cpp h_assert(infinityNFromFloat.to_bits() == infinityN.to_bits(), "Mismatch between constructors"); h_assert 117 test/correctness/float16_t_constants.cpp h_assert(infinityNFromDouble.to_bits() == infinityN.to_bits(), "Mismatch between constructors"); h_assert 120 test/correctness/float16_t_constants.cpp h_assert(infinityN.is_infinity() && infinityN.is_negative(), "-ve infinity invalid"); h_assert 121 test/correctness/float16_t_constants.cpp h_assert(infinityN.to_bits() == 0xfc00, "-ve infinity invalid bits"); h_assert 122 test/correctness/float16_t_constants.cpp h_assert(infinityN.to_hex_string() == "-infinity", "-ve infinity hex string invalid"); h_assert 123 test/correctness/float16_t_constants.cpp h_assert(infinityN.to_decimal_string() == "-Inf", "-ve infinity decimal string invalid"); h_assert 128 test/correctness/float16_t_constants.cpp h_assert(std::isinf(infinityNf) & std::signbit(infinityNf), h_assert 130 test/correctness/float16_t_constants.cpp h_assert(std::isinf(infinityNd) & std::signbit(infinityNd), h_assert 134 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&infinityN) == 0xfc00, h_assert 145 test/correctness/float16_t_constants.cpp h_assert(nanValueFromFloat.to_bits() == nanValue.to_bits(), "Mismatch between constructors"); h_assert 146 test/correctness/float16_t_constants.cpp h_assert(nanValueFromDouble.to_bits() == nanValue.to_bits(), "Mismatch between constructors"); h_assert 149 test/correctness/float16_t_constants.cpp h_assert(nanValue.is_nan(), "NaN invalid"); h_assert 151 test/correctness/float16_t_constants.cpp h_assert((nanValue.to_bits() & 0x7c00) == 0x7c00, "NaN exponent invalid"); h_assert 153 test/correctness/float16_t_constants.cpp h_assert((nanValue.to_bits() & 0x03ff) > 0, "NaN significant invalid"); h_assert 154 test/correctness/float16_t_constants.cpp h_assert(nanValue.to_hex_string() == "nan", "NaN hex string invalid"); h_assert 155 test/correctness/float16_t_constants.cpp h_assert(nanValue.to_decimal_string() == "NaN", "NaN decimal string invalid"); h_assert 160 test/correctness/float16_t_constants.cpp h_assert(std::isnan(nanValuef), "NaN conversion to float invalid"); h_assert 161 test/correctness/float16_t_constants.cpp h_assert(std::isnan(nanValued), "NaN conversion to float invalid"); h_assert 164 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&nanValue) == nanValue.to_bits(), h_assert 172 test/correctness/float16_t_constants.cpp h_assert(largestNormFromInt.to_bits() == largestNorm.to_bits(), "make_from_signed_int gave wrong value"); h_assert 173 test/correctness/float16_t_constants.cpp h_assert(largestNorm.to_bits() == 0x7bff, "65504 as float_16t has wrong bits"); h_assert 174 test/correctness/float16_t_constants.cpp h_assert(largestNorm.to_hex_string() == "0x1.ffcp15", "65504 as float_16t has wrong hex repr"); h_assert 175 test/correctness/float16_t_constants.cpp h_assert(largestNorm.to_decimal_string() == "6.5504E+4", "65504 as float_16t has wrong decimal repr"); h_assert 180 test/correctness/float16_t_constants.cpp h_assert(largestNormf == 65504.0f, "Conversion to float failed"); h_assert 181 test/correctness/float16_t_constants.cpp h_assert(largestNormd == 65504.0, "Conversion to double failed"); h_assert 184 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&largestNorm) == largestNorm.to_bits(), h_assert 192 test/correctness/float16_t_constants.cpp h_assert(largestNormFromInt.to_bits() == largestNorm.to_bits(), "make_from_signed_int gave wrong value"); h_assert 193 test/correctness/float16_t_constants.cpp h_assert(largestNorm.to_bits() == 0xfbff, "65504 as float_16t has wrong bits"); h_assert 194 test/correctness/float16_t_constants.cpp h_assert(largestNorm.to_hex_string() == "-0x1.ffcp15", "65504 as float_16t has wrong hex repr"); h_assert 195 test/correctness/float16_t_constants.cpp h_assert(largestNorm.to_decimal_string() == "-6.5504E+4", "65504 as float_16t has wrong decimal repr"); h_assert 200 test/correctness/float16_t_constants.cpp h_assert(largestNormf == -65504.0f, "Conversion to float failed"); h_assert 201 test/correctness/float16_t_constants.cpp h_assert(largestNormd == -65504.0, "Conversion to double failed"); h_assert 204 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&largestNorm) == largestNorm.to_bits(), h_assert 211 test/correctness/float16_t_constants.cpp h_assert(smallestSubNorm.to_bits() == 0x0001, "smallest number has wrong bits"); h_assert 212 test/correctness/float16_t_constants.cpp h_assert(smallestSubNorm.to_hex_string() == "0x0.004p-14", "smallest number has wrong hex string"); h_assert 213 test/correctness/float16_t_constants.cpp h_assert(smallestSubNorm.to_decimal_string() == "5.9605E-8", "smallest number has wrong decimal string"); h_assert 218 test/correctness/float16_t_constants.cpp h_assert(smallestSubNormf == (1.0f)/(1<<24), "conversion to float failed"); h_assert 219 test/correctness/float16_t_constants.cpp h_assert(smallestSubNormd == (1.0)/(1<<24), "conversion to double failed"); h_assert 222 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&smallestSubNorm) == smallestSubNorm.to_bits(), h_assert 229 test/correctness/float16_t_constants.cpp h_assert(smallestSubNorm.to_bits() == 0x8001, "smallest number has wrong bits"); h_assert 230 test/correctness/float16_t_constants.cpp h_assert(smallestSubNorm.to_hex_string() == "-0x0.004p-14", "smallest number has wrong hex string"); h_assert 231 test/correctness/float16_t_constants.cpp h_assert(smallestSubNorm.to_decimal_string() == "-5.9605E-8", "smallest number has wrong decimal string"); h_assert 236 test/correctness/float16_t_constants.cpp h_assert(smallestSubNormf == (-1.0f)/(1<<24), "conversion to float failed"); h_assert 237 test/correctness/float16_t_constants.cpp h_assert(smallestSubNormd == (-1.0)/(1<<24), "conversion to double failed"); h_assert 240 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&smallestSubNorm) == smallestSubNorm.to_bits(), h_assert 250 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneRZ.to_bits() == 0x2e66, "0.1 incorrectly rounded to zero"); h_assert 251 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneRZ.to_hex_string() == "0x1.998p-4", "0.1 incorrectly rounded to zero"); h_assert 252 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneRZ.to_decimal_string(0) == "9.9976E-2", "0.1 converted to half then decimal failed"); h_assert 256 test/correctness/float16_t_constants.cpp h_assert(reconstruct.to_bits() == noughtPointOneRZ.to_bits(), "roundtrip conversion failed"); h_assert 263 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneRNE.to_bits() == noughtPointOneRZ.to_bits(), "incorrect rounding"); h_assert 264 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneRNA.to_bits() == noughtPointOneRZ.to_bits(), "incorrect rounding"); h_assert 265 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneRD.to_bits() == noughtPointOneRZ.to_bits(), "incorrect rounding"); h_assert 274 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneFCast.to_bits() == noughtPointOneRNE.to_bits(), "cast from float failed"); h_assert 275 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneDCast.to_bits() == noughtPointOneRNE.to_bits(), "cast from double failed"); h_assert 276 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneExplicitConstructor.to_bits() == noughtPointOneRNE.to_bits(), "Use of explicit constructor produced bad value"); h_assert 277 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneExplicitConstructorStr.to_bits() == noughtPointOneRNE.to_bits(), "Use of explicit constructor produced bad value"); h_assert 278 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneMakeFromBits.to_bits() == noughtPointOneRNE.to_bits(), "Use of explicit constructor produced bad value"); h_assert 283 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneRU.to_bits() == 0x2e67, "0.1 incorrectly rounded up"); h_assert 284 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneRU.to_hex_string() == "0x1.99cp-4", "0.1 incorrectly rounded up"); h_assert 291 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRD.to_bits() == 0x6bfd, "4091 incorreclty rounded down"); h_assert 292 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRD.to_hex_string() == "0x1.ff4p11", "4091 incorreclty rounded down"); h_assert 293 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRD.to_decimal_string(0) == "4.09E+3", "4091 converted to half then decimal failed"); h_assert 294 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRDFromInt.to_bits() == fourZeroNineOneRD.to_bits(), "make_from_signed_int gave wrong value"); h_assert 298 test/correctness/float16_t_constants.cpp h_assert(reconstruct.to_bits() == fourZeroNineOneRD.to_bits(), "roundtrip conversion failed"); h_assert 302 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRU.to_bits() == 0x6bfe, "4091 incorreclty rounded up"); h_assert 303 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRU.to_hex_string() == "0x1.ff8p11", "4091 incorreclty rounded up"); h_assert 304 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRU.to_decimal_string(0) == "4.092E+3", "4091 converted to half then decimal failed"); h_assert 305 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRUFromInt.to_bits() == fourZeroNineOneRU.to_bits(), "make_from_signed_int gave wrong value"); h_assert 309 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRZ.to_bits() == fourZeroNineOneRD.to_bits(), "4091 incorrectly rounded toward zero"); h_assert 310 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRZFromInt.to_bits() == fourZeroNineOneRD.to_bits(), "make_from_signed_int gave wrong value"); h_assert 314 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRNE.to_bits() == fourZeroNineOneRU.to_bits(), "4091 incorrectly rounded towards nearest even"); h_assert 315 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRNEFromInt.to_bits() == fourZeroNineOneRU.to_bits(), "make_from_signed_int gave wrong value"); h_assert 319 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRNA.to_bits() == fourZeroNineOneRU.to_bits(), "4091 incorrectly rounded towards nearest, away from zero"); h_assert 320 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRNAFromInt.to_bits() == fourZeroNineOneRU.to_bits(), "make_from_signed_int gave wrong value"); h_assert 327 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRD.to_bits() == 0xebfe, "-4091 incorreclty rounded down"); h_assert 328 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRD.to_hex_string() == "-0x1.ff8p11", "-4091 incorreclty rounded down"); h_assert 329 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRD.to_decimal_string(0) == "-4.092E+3", "-4091 converted to half then decimal failed"); h_assert 330 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRDFromInt.to_bits() == fourZeroNineOneRD.to_bits(), "make_from_signed_int gave wrong value"); h_assert 334 test/correctness/float16_t_constants.cpp h_assert(reconstruct.to_bits() == fourZeroNineOneRD.to_bits(), "roundtrip conversion failed"); h_assert 338 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRU.to_bits() == 0xebfd, "4091 incorreclty rounded up"); h_assert 339 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRU.to_hex_string() == "-0x1.ff4p11", "-4091 incorreclty rounded up"); h_assert 340 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRU.to_decimal_string(0) == "-4.09E+3", "-4091 converted to half then decimal failed"); h_assert 341 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRUFromInt.to_bits() == fourZeroNineOneRU.to_bits(), "make_from_signed_int gave wrong value"); h_assert 345 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRZ.to_bits() == fourZeroNineOneRU.to_bits(), "-4091 incorrectly rounded toward zero"); h_assert 346 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRZFromInt.to_bits() == fourZeroNineOneRU.to_bits(), "make_from_signed_int gave wrong value"); h_assert 350 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRNE.to_bits() == fourZeroNineOneRD.to_bits(), "-4091 incorrectly rounded towards nearest even"); h_assert 351 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRNEFromInt.to_bits() == fourZeroNineOneRD.to_bits(), "make_from_signed_int gave wrong value"); h_assert 355 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRNA.to_bits() == fourZeroNineOneRD.to_bits(), "-4091 incorrectly rounded towards nearest, away from zero"); h_assert 356 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRNAFromInt.to_bits() == fourZeroNineOneRD.to_bits(), "make_from_signed_int gave wrong value"); h_assert 365 test/correctness/float16_t_constants.cpp h_assert(noughtPointThreeRD.to_bits() == 0x34cc, "0.3 incorrectly rounded downward"); h_assert 366 test/correctness/float16_t_constants.cpp h_assert(noughtPointThreeRD.to_hex_string() == "0x1.33p-2", "0.3 incorrectly rounded downward"); h_assert 367 test/correctness/float16_t_constants.cpp h_assert(noughtPointThreeRD.to_decimal_string(0) == "2.998E-1", "0.3 incorrectly rounded downward"); h_assert 373 test/correctness/float16_t_constants.cpp h_assert(reconstruct.to_bits() == noughtPointThreeRD.to_bits(), "roundtrip conversion failed"); h_assert 376 test/correctness/float16_t_constants.cpp h_assert(noughtPointThreeRU.to_bits() == 0x34cd, "0.3 incorrectly rounded upward"); h_assert 377 test/correctness/float16_t_constants.cpp h_assert(noughtPointThreeRU.to_hex_string() == "0x1.334p-2", "0.3 incorrectly rounded upward"); h_assert 378 test/correctness/float16_t_constants.cpp h_assert(noughtPointThreeRU.to_decimal_string(0) == "3.0005E-1", "0.3 incorrectly rounded upward"); h_assert 381 test/correctness/float16_t_constants.cpp h_assert(noughtPointThreeRZ.to_bits() == noughtPointThreeRD.to_bits(), "0.3 incorrectly rounded toward zeron"); h_assert 384 test/correctness/float16_t_constants.cpp h_assert(noughtPointThreeRNE.to_bits() == noughtPointThreeRU.to_bits(), "0.3 incorrectly rounded toward nearest even"); h_assert 387 test/correctness/float16_t_constants.cpp h_assert(noughtPointThreeRNA.to_bits() == noughtPointThreeRU.to_bits(), "0.3 incorrectly rounded toward nearest, away from zero"); h_assert 18 test/correctness/float16_t_image_type.cpp h_assert(sizeof(float16_t) == 2, "float16_t has invalid size"); h_assert 21 test/correctness/float16_t_image_type.cpp h_assert(simple.extent(0) == 10, "invalid width"); h_assert 22 test/correctness/float16_t_image_type.cpp h_assert(simple.extent(1) == 3, "invalid height"); h_assert 23 test/correctness/float16_t_image_type.cpp h_assert(simple.min(0) == 0, "unexpected non zero min in x"); h_assert 24 test/correctness/float16_t_image_type.cpp h_assert(simple.min(1) == 0, "unexpected non zero min in y"); h_assert 25 test/correctness/float16_t_image_type.cpp h_assert(simple.channels() == 1, "invalid channels"); h_assert 26 test/correctness/float16_t_image_type.cpp h_assert(simple.dimensions() == 2, "invalid number of dimensions"); h_assert 39 test/correctness/float16_t_image_type.cpp h_assert(simple(x, y) == zeroPointTwoFive, "Invalid value read back"); h_assert 40 test/correctness/float16_t_image_type.cpp h_assert(simple(x, y).to_bits() == 0x3400, "Bit pattern incorrect"); h_assert 27 test/correctness/float16_t_implicit_upcast.cpp h_assert(simple.extent(0) == 10, "invalid width"); h_assert 28 test/correctness/float16_t_implicit_upcast.cpp h_assert(simple.extent(1) == 3, "invalid height"); h_assert 29 test/correctness/float16_t_implicit_upcast.cpp h_assert(simple.min(0) == 0, "unexpected non zero min in x"); h_assert 30 test/correctness/float16_t_implicit_upcast.cpp h_assert(simple.min(1) == 0, "unexpected non zero min in y"); h_assert 31 test/correctness/float16_t_implicit_upcast.cpp h_assert(simple.channels() == 1, "invalid channels"); h_assert 32 test/correctness/float16_t_implicit_upcast.cpp h_assert(simple.dimensions() == 2, "invalid number of dimensions"); h_assert 37 test/correctness/float16_t_implicit_upcast.cpp h_assert(simple(x, y) == 1.0f, "Invalid value read back"); h_assert 25 test/correctness/float16_t_realize_constant.cpp h_assert(sizeof(float16_t) == 2, "float16_t has invalid size"); h_assert 30 test/correctness/float16_t_realize_constant.cpp h_assert(f == float16_t(0.75), "Invalid value read back"); h_assert 31 test/correctness/float16_t_realize_constant.cpp h_assert(f.to_bits() == 0x3a00, "Bit pattern incorrect"); h_assert 27 test/error/float16_t_implicit_downcast.cpp h_assert(simple.extent(0) == 10, "invalid width"); h_assert 28 test/error/float16_t_implicit_downcast.cpp h_assert(simple.extent(1) == 3, "invalid height"); h_assert 29 test/error/float16_t_implicit_downcast.cpp h_assert(simple.min(0) == 0, "unexpected non zero min in x"); h_assert 30 test/error/float16_t_implicit_downcast.cpp h_assert(simple.min(1) == 0, "unexpected non zero min in y"); h_assert 31 test/error/float16_t_implicit_downcast.cpp h_assert(simple.channels() == 1, "invalid channels"); h_assert 32 test/error/float16_t_implicit_downcast.cpp h_assert(simple.dimensions() == 2, "invalid number of dimensions"); h_assert 19 test/error/float16_t_overflow.cpp h_assert(!std::isnan(largeNum), "largeNum should not be NaN"); h_assert 20 test/error/float16_t_overflow.cpp h_assert(!std::isinf(largeNum), "largeNum should not be inf"); h_assert 92 test/generator/float16_t_aottest.cpp h_assert(sizeof(inputs)/sizeof(uint16_t) == sizeof(expectedF)/sizeof(float), h_assert 94 test/generator/float16_t_aottest.cpp h_assert(sizeof(inputs)/sizeof(uint16_t) == sizeof(expectedD)/sizeof(double), h_assert 123 test/generator/float16_t_aottest.cpp h_assert(outF.asUInt == expectedFValue.asUInt, "Failed to match on convert to float"); h_assert 124 test/generator/float16_t_aottest.cpp h_assert(outD.asUInt == expectedDValue.asUInt, "Failed to match on convert to double"); h_assert 20 test/warning/float16_t_underflow.cpp h_assert(verySmallNum != 0.0, "smallNum should not be 0"); h_assert 33 test/warning/float16_t_underflow.cpp h_assert(warning.to_bits() == 0x0001, "bits incorrect");