Home
last modified time | relevance | path

Searched refs:NAN (Results 1 – 25 of 202) sorted by relevance

123456789

/third_party/jerryscript/tests/unit-libm/
Dtest-libm.inc.h25 check_double ("acos (INFINITY)", acos (INFINITY), NAN);
26 check_double ("acos (-INFINITY)", acos (-INFINITY), NAN);
27 check_double ("acos (NAN)", acos (NAN), NAN);
44 check_double ("acos (1.1)", acos (1.1), NAN);
45 check_double ("acos (-1.1)", acos (-1.1), NAN);
55 check_double ("asin (INFINITY)", asin (INFINITY), NAN);
56 check_double ("asin (-INFINITY)", asin (-INFINITY), NAN);
57 check_double ("asin (NAN)", asin (NAN), NAN);
76 check_double ("asin (1.1)", asin (1.1), NAN);
77 check_double ("asin (-1.1)", asin (-1.1), NAN);
[all …]
/third_party/python/Lib/test/
Dieee754.txt27 >>> NAN = float('nan')
33 >>> NAN
37 and NAN:
38 >>> isinf(INF), isinf(NINF), isnan(NAN)
68 >>> NAN == NAN
70 >>> NAN < 0
72 >>> NAN >= 0
76 >>> 1 + NAN
78 >>> 1 * NAN
80 >>> 0 * NAN
[all …]
Dtest_cmath.py12 NAN = float('nan') variable
38 (NAN, -INF),
39 (NAN, -2.3),
40 (NAN, -0.0),
41 (NAN, 0.0),
42 (NAN, 2.3),
43 (NAN, INF),
44 (-INF, NAN),
45 (-2.3, NAN),
46 (-0.0, NAN),
[all …]
Dtest_math.py18 NAN = float('nan') variable
267 self.assertTrue(math.isnan(math.acos(NAN)))
277 self.assertTrue(math.isnan(math.acosh(NAN)))
288 self.assertTrue(math.isnan(math.asin(NAN)))
297 self.assertTrue(math.isnan(math.asinh(NAN)))
306 self.assertTrue(math.isnan(math.atan(NAN)))
317 self.assertTrue(math.isnan(math.atanh(NAN)))
334 self.assertTrue(math.isnan(math.atan2(0., NAN)))
342 self.assertTrue(math.isnan(math.atan2(-0., NAN)))
350 self.assertTrue(math.isnan(math.atan2(INF, NAN)))
[all …]
Dtest_complex.py12 NAN = float("nan") variable
113 for denom_real, denom_imag in [(0, NAN), (NAN, 0), (NAN, NAN)]:
506 for x in 0.0, -0.0, INF, -INF, NAN:
507 for y in 0.0, -0.0, INF, -INF, NAN:
562 test(complex(NAN, 1), "(nan+1j)")
563 test(complex(1, NAN), "(1+nanj)")
564 test(complex(NAN, NAN), "(nan+nanj)")
568 test(complex(0, NAN), "nanj")
633 vals = [0.0, 1e-500, 1e-315, 1e-200, 0.0123, 3.1415, 1e50, INF, NAN]
763 self.assertEqual(format(complex(NAN, NAN), 'f'), 'nan+nanj')
[all …]
Dtest_float.py16 NAN = float("nan") variable
288 floats = (INF, -INF, 0.0, 1.0, NAN)
373 self.assertTrue(isnan(pow_op(-INF, NAN)))
374 self.assertTrue(isnan(pow_op(-2.0, NAN)))
375 self.assertTrue(isnan(pow_op(-1.0, NAN)))
376 self.assertTrue(isnan(pow_op(-0.5, NAN)))
377 self.assertTrue(isnan(pow_op(-0.0, NAN)))
378 self.assertTrue(isnan(pow_op(0.0, NAN)))
379 self.assertTrue(isnan(pow_op(0.5, NAN)))
380 self.assertTrue(isnan(pow_op(2.0, NAN)))
[all …]
/third_party/jerryscript/tools/unit-tests/
Dgen-test-libm.c63 GEN_DBL_TEST (acos (NAN)); in main()
95 GEN_DBL_TEST (asin (NAN)); in main()
133 GEN_DBL_TEST (atan (NAN)); in main()
161 GEN_DBL_TEST (atan2 (NAN, NAN)); in main()
162 GEN_DBL_TEST (atan2 (0.0, NAN)); in main()
163 GEN_DBL_TEST (atan2 (-0.0, NAN)); in main()
164 GEN_DBL_TEST (atan2 (1.0, NAN)); in main()
165 GEN_DBL_TEST (atan2 (-1.0, NAN)); in main()
166 GEN_DBL_TEST (atan2 (INFINITY, NAN)); in main()
167 GEN_DBL_TEST (atan2 (-INFINITY, NAN)); in main()
[all …]
/third_party/jerryscript/tests/unit-core/
Dtest-string-to-number.cpp80 (ecma_number_t) NAN,
81 (ecma_number_t) NAN,
82 (ecma_number_t) NAN,
83 (ecma_number_t) NAN,
84 (ecma_number_t) NAN,
85 (ecma_number_t) NAN,
86 (ecma_number_t) NAN,
87 (ecma_number_t) NAN,
Dtest-number-to-int32.cpp66 TEST_CASE (NAN, 0),
67 TEST_CASE (-NAN, 0),
95 TEST_CASE (NAN, 0),
96 TEST_CASE (-NAN, 0),
/third_party/skia/third_party/externals/angle2/src/third_party/ceval/
Dceval.h400 return NAN; in ceval_asin()
407 return NAN; in ceval_acos()
429 return NAN; in ceval_tan()
461 return NAN; in ceval_factorial()
477 return NAN; in ceval_sqrt()
505 return NAN; in ceval_bit_not()
533 return NAN; in ceval_sum()
540 return NAN; in ceval_diff()
547 return NAN; in ceval_prod()
554 return NAN; in ceval_div()
[all …]
/third_party/cups-filters/filter/pdftopdf/
Dpptypes.h25 PageRect() : top(NAN),left(NAN),right(NAN),bottom(NAN),width(NAN),height(NAN) {} in PageRect()
Dnup.h11 width(NAN),height(NAN), in NupParameters()
/third_party/ffmpeg/tests/ref/fate/
Deval155 Evaluating 'isnan(NAN)'
156 'isnan(NAN)' -> 1.000000
164 Evaluating 'isinf(NAN)'
165 'isinf(NAN)' -> 0.000000
170 Evaluating 'floor(NAN)'
171 'floor(NAN)' -> nan
201 Evaluating 'not(NAN)'
202 'not(NAN)' -> 0.000000
280 Evaluating 'bitand(NAN, 1)'
281 'bitand(NAN, 1)' -> nan
/third_party/rust/crates/minimal-lexical/tests/
Dlibm_tests.rs19 assert!(libm::fabsf(f32::NAN).is_nan()); in fabsf_spec_test()
39 assert!(libm::sqrtf(f32::NAN).is_nan()); in sqrtf_spec_test()
57 const NANS: &[f64] = &[f64::NAN];
141 powd_test_sets_as_exponent(f64::NAN, &ALL[2..], f64::NAN); in powd_nan_inputs()
145 powd_test_sets_as_base(&ALL[..(ALL.len() - 2)], f64::NAN, f64::NAN); in powd_nan_inputs()
243 powd_test_sets(&ALL[3..7], &|v: f64| libm::powd(*val, v), &|_| f64::NAN); in special_cases()
265 assert!(libm::fabsd(f64::NAN).is_nan()); in fabsd_spec_test()
285 assert!(libm::sqrtd(f64::NAN).is_nan()); in sqrtd_spec_test()
/third_party/skia/third_party/externals/tint/test/expressions/literals/
Dnan.spvasm.expected.msl12 *(tint_symbol_3) = float4(NAN, NAN, NAN, NAN);
/third_party/ffmpeg/libavfilter/
Df_select.c232 select->var_values[VAR_PREV_PTS] = NAN; in config_input()
233 select->var_values[VAR_PREV_SELECTED_PTS] = NAN; in config_input()
234 select->var_values[VAR_PREV_SELECTED_T] = NAN; in config_input()
235 select->var_values[VAR_PREV_T] = NAN; in config_input()
236 select->var_values[VAR_START_PTS] = NAN; in config_input()
237 select->var_values[VAR_START_T] = NAN; in config_input()
256 select->var_values[VAR_PICT_TYPE] = NAN; in config_input()
257 select->var_values[VAR_INTERLACE_TYPE] = NAN; in config_input()
258 select->var_values[VAR_SCENE] = NAN; in config_input()
259 select->var_values[VAR_CONSUMED_SAMPLES_N] = NAN; in config_input()
[all …]
Dsetpts.c111 setpts->var_values[VAR_PREV_INPTS] = NAN; in init()
112 setpts->var_values[VAR_PREV_INT] = NAN; in init()
113 setpts->var_values[VAR_PREV_OUTPTS] = NAN; in init()
114 setpts->var_values[VAR_PREV_OUTT] = NAN; in init()
115 setpts->var_values[VAR_STARTPTS] = NAN; in init()
116 setpts->var_values[VAR_STARTT] = NAN; in init()
131 setpts->type == AVMEDIA_TYPE_AUDIO ? inlink->sample_rate : NAN; in config_input()
136 av_q2d(inlink->frame_rate) : NAN; in config_input()
162 setpts->var_values[VAR_POS ] = !frame || frame->pkt_pos == -1 ? NAN : frame->pkt_pos; in eval_pts()
Dvf_crop.c146 s->var_values[VAR_X] = NAN; in config_input()
147 s->var_values[VAR_Y] = NAN; in config_input()
148 s->var_values[VAR_OUT_W] = s->var_values[VAR_OW] = NAN; in config_input()
149 s->var_values[VAR_OUT_H] = s->var_values[VAR_OH] = NAN; in config_input()
151 s->var_values[VAR_T] = NAN; in config_input()
152 s->var_values[VAR_POS] = NAN; in config_input()
263 NAN : frame->pts * av_q2d(link->time_base); in filter_frame()
265 NAN : frame->pkt_pos; in filter_frame()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DDynamicStateCommandValidationTests.cpp55 TestViewportCall(false, NAN, 0.0, 1.0, 1.0, 0.0, 1.0); in TEST_F()
56 TestViewportCall(false, 0.0, NAN, 1.0, 1.0, 0.0, 1.0); in TEST_F()
57 TestViewportCall(false, 0.0, 0.0, NAN, 1.0, 0.0, 1.0); in TEST_F()
58 TestViewportCall(false, 0.0, 0.0, 1.0, NAN, 0.0, 1.0); in TEST_F()
59 TestViewportCall(false, 0.0, 0.0, 1.0, 1.0, NAN, 1.0); in TEST_F()
60 TestViewportCall(false, 0.0, 0.0, 1.0, 1.0, 0.0, NAN); in TEST_F()
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/
Dinfinite-macro.rs9 pub const NAN: f64 = ::std::f64::NAN; constant
/third_party/jerryscript/jerry-libm/include/
Dmath.h26 #define NAN (0.0/0.0) macro
31 #define isfinite(x) (!(isinf(x)) && (x != NAN))
/third_party/gstreamer/gstreamer/gst/
Dmath-compat.h97 #ifndef NAN
109 #define NAN (__gst_nan_union.__d) macro
/third_party/ffmpeg/compat/
Dstrtod.c74 res = NAN; in avpriv_strtod()
78 res = NAN; in avpriv_strtod()
/third_party/jerryscript/jerry-libm/
Djerry-libm-internal.h76 #ifndef NAN
77 #define NAN (0.0/0.0) macro
/third_party/ffmpeg/libavutil/
Dmathematics.h63 #ifndef NAN
64 #define NAN av_int2float(0x7fc00000) macro

123456789