/third_party/icu/icu4c/source/test/intltest/ |
H A D | tsputil.cpp | 38 double nan = uprv_getNaN(); 68 // test infinity and nan 70 remainderTest(ninf, nan, 1.25); 71 remainderTest(pinf, nan, 1.25); 104 double nan = uprv_getNaN(); in testMaxMin() local 127 maxMinTest(pinf, nan, nan, true); in testMaxMin() 128 maxMinTest(pinf, nan, nan, false); in testMaxMin() 129 maxMinTest(ninf, nan, na in testMaxMin() 374 double nan = uprv_getNaN(); testIsNaN() local 401 double nan = uprv_getNaN(); NaNGT() local 428 double nan = uprv_getNaN(); NaNLT() local 455 double nan = uprv_getNaN(); NaNGTE() local 482 double nan = uprv_getNaN(); NaNLTE() local 509 double nan = uprv_getNaN(); NaNE() local 536 double nan = uprv_getNaN(); NaNNE() local [all...] |
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
H A D | ecma-builtin-date.c | 438 const ecma_number_t nan = ecma_number_make_nan (); in ecma_builtin_date_parse_toString_formats() local 442 return nan; in ecma_builtin_date_parse_toString_formats() 449 return nan; in ecma_builtin_date_parse_toString_formats() 459 return nan; in ecma_builtin_date_parse_toString_formats() 464 return nan; in ecma_builtin_date_parse_toString_formats() 470 return nan; in ecma_builtin_date_parse_toString_formats() 478 return nan; in ecma_builtin_date_parse_toString_formats() 483 return nan; in ecma_builtin_date_parse_toString_formats() 489 return nan; in ecma_builtin_date_parse_toString_formats() 495 return nan; in ecma_builtin_date_parse_toString_formats() [all...] |
/third_party/mesa3d/src/util/tests/ |
H A D | half_float_test.cpp | 56 /* Make sure that our 32-bit float nan test value we're using is a in TEST() 74 float nan = func(HALF_NAN); in test_half_to_float_limits() local 75 EXPECT_TRUE(isnan(nan)); in test_half_to_float_limits() 76 EXPECT_FALSE(issignaling(nan)); in test_half_to_float_limits() 105 uint16_t nan = func(TEST_NAN); in test_float_to_half_limits() local 106 EXPECT_EQ((nan & 0xfc00), 0x7c00); /* exponent is all 1s */ in test_float_to_half_limits() 107 EXPECT_TRUE(nan & (1 << 9)); /* mantissa is quiet nan */ in test_float_to_half_limits()
|
/third_party/musl/libc-test/src/math/ |
H A D | isless.c | 41 T(nan, 1.0, UNORD); in main() 42 T(1.0, nan, UNORD); in main() 43 T(nan, nan, UNORD); in main() 44 T(nan, nan+1.0, UNORD); in main() 45 T(nan, nan+1.0L, UNORD); in main()
|
/third_party/python/Lib/test/ |
H A D | test_cmath.py | 12 NAN = float('nan') 116 self.fail(msg or '{!r} should be nan'.format(b)) 165 self.assertTrue(math.isnan(cmath.nan.real)) 166 self.assertEqual(cmath.nan.imag, 0.0) 173 self.assertEqual(repr(cmath.nan), "nan") 440 nan = float('nan') 441 check(complex(nan, 0), (nan, na [all...] |
/third_party/skia/tests/ |
H A D | InfRectTest.cpp | 24 float nan = SK_FloatNaN; in DEF_TEST() local 25 SkASSERT(!(nan == nan)); in DEF_TEST() 34 const SkScalar invalid[] = { nan, inf, -inf }; in DEF_TEST()
|
H A D | ScalarTest.cpp | 135 float nan = inf * 0; in test_isfinite() local 142 test_floatclass(reporter, nan, kNaN); in test_isfinite() 143 test_floatclass(reporter, -nan, kNaN); in test_isfinite() 155 { nan, false }, in test_isfinite()
|
/third_party/musl/libc-test/src/functionalext/supplement/math/math_gtest/ |
H A D | math_hypot_test.cpp | 59 EXPECT_TRUE(isnan(hypot(6.0, nan("")))); in HWTEST_F() 60 EXPECT_TRUE(isnan(hypot(nan(""), 8.0))); in HWTEST_F() 108 EXPECT_TRUE(isnan(hypotf(6.0f, nan("")))); in HWTEST_F() 109 EXPECT_TRUE(isnan(hypotf(nan(""), 8.0f))); in HWTEST_F()
|
H A D | math_fmod_test.cpp | 57 EXPECT_TRUE(isnan(fmod(nan(""), 14.0))); in HWTEST_F() 58 EXPECT_TRUE(isnan(fmod(14.0, nan("")))); in HWTEST_F() 114 EXPECT_TRUE(isnan(fmodf(14.0f, nan("")))); in HWTEST_F()
|
H A D | math_pow_test.cpp | 36 EXPECT_TRUE(isnan(pow(nan(""), 5.0))); in HWTEST_F() 37 EXPECT_TRUE(isnan(pow(4.0, nan("")))); in HWTEST_F() 47 EXPECT_DOUBLE_EQ(1.0, (pow(1.0, nan("")))); in HWTEST_F()
|
H A D | math_ilogb_test.cpp | 40 * @tc.desc: When the value is nan, test the return value of the function. 45 EXPECT_EQ(FP_ILOGBNAN, ilogb(nan(""))); in HWTEST_F() 95 * @tc.desc: When the float value is nan, test the return value of the function. 100 EXPECT_EQ(FP_ILOGBNAN, ilogbf(nan(""))); in HWTEST_F() 137 * @tc.desc: When the long double value is nan, test the return value of the function. 142 EXPECT_EQ(FP_ILOGBNAN, ilogbl(nan(""))); in HWTEST_F()
|
H A D | complex_test.cpp | 655 double complex tan_result = ctanh(nan("") + 0i); in HWTEST_F() 668 double complex tan_result = ctanh(nan("") + 2.0i); in HWTEST_F() 681 double complex tan_result = ctanh(nan("") + nan("") * I); in HWTEST_F() 730 float complex tan_result = ctanhf(nan("") + nan("") * I); in HWTEST_F()
|
H A D | math_fmin_test.cpp | 37 EXPECT_DOUBLE_EQ(11.0, fmin(11.0, nan(""))); in HWTEST_F() 38 EXPECT_DOUBLE_EQ(12.0, fmin(nan(""), 12.0)); in HWTEST_F()
|
H A D | math_fmax_test.cpp | 37 EXPECT_DOUBLE_EQ(15.0, fmax(15.0, nan(""))); in HWTEST_F() 38 EXPECT_DOUBLE_EQ(14.0, fmax(nan(""), 14.0)); in HWTEST_F()
|
H A D | math_remainder_test.cpp | 42 * @tc.desc: When the value is nan, test the return value of the function. 47 EXPECT_TRUE(isnan(remainder(nan(""), 11.0))); in HWTEST_F() 48 EXPECT_TRUE(isnan(remainder(13.0, nan("")))); in HWTEST_F() 99 * @tc.desc: When the value is nan, test the return value of the function.
|
H A D | math_remquo_test.cpp | 53 EXPECT_TRUE(isnan(remquo(nan(""), 15.0, "ient))); in HWTEST_F() 54 EXPECT_TRUE(isnan(remquo(11.0, nan(""), "ient))); in HWTEST_F()
|
/third_party/json/docs/examples/ |
H A D | operator_spaceship__scalartype.c++20.cpp | 27 constexpr auto nan = float_limits::quiet_NaN(); in main() 39 std::cout << number << " <=> " << nan << " := " << to_string(number <=> nan) << '\n'; // *NOPAD* in main()
|
/third_party/icu/icu4c/source/test/cintltst/ |
H A D | putiltst.c | 389 double nan = uprv_getNaN(); 406 remainderTest(nan, 1.0, nan); 407 remainderTest(1.0, nan, nan); 408 /*test infinity and nan*/ 409 remainderTest(ninf, nan, nan); 410 remainderTest(pinf, nan, nan); [all...] |
/third_party/node/benchmark/buffers/ |
H A D | buffer-read-float.js | 7 value: ['zero', 'big', 'small', 'inf', 'nan'], 20 nan: NaN, 27 nan: NaN,
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
H A D | IntlTestDecimalFormatSymbolsC.java | 96 String nan = en.getNaN(); in TestSymbols() 97 fr.setNaN(nan); in TestSymbols() 99 if (!nan.equals(nan2)) { in TestSymbols()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/ |
H A D | IntlTestDecimalFormatSymbolsC.java | 99 String nan = en.getNaN(); in TestSymbols() 100 fr.setNaN(nan); in TestSymbols() 102 if (!nan.equals(nan2)) { in TestSymbols()
|
/third_party/jerryscript/tests/unit-core/ |
H A D | test-to-integer.cpp | 90 ecma_value_t nan = ecma_make_nan_value (); in HWTEST_F() local 92 result = ecma_op_to_integer (nan, &num); in HWTEST_F() 94 ecma_free_value (nan); in HWTEST_F()
|
H A D | test-to-length.cpp | 136 ecma_value_t nan = ecma_make_nan_value (); in HWTEST_F() local 138 result = ecma_op_to_length (nan, &num); in HWTEST_F() 140 ecma_free_value (nan); in HWTEST_F()
|
/third_party/musl/libc-test/src/math/gen/ |
H A D | gen.h | 26 #undef nan macro 28 #define nan NAN macro
|
/third_party/icu/vendor/double-conversion/upstream/test/cctest/ |
H A D | test-ieee.cc | 450 Double nan(Double::NaN()); in TEST() 451 CHECK(nan.IsNan()); in TEST() 452 CHECK(nan.IsQuietNan()); in TEST() 458 Single nan(Single::NaN()); in TEST() 459 CHECK(nan.IsNan()); in TEST() 460 CHECK(nan.IsQuietNan()); in TEST() 464 // https://developercommunity.visualstudio.com/t/stdnumeric-limitssignaling-nan-returns-quiet-nan/155064 in TEST()
|