Home
last modified time | relevance | path

Searched refs:check_float (Results 1 – 7 of 7) sorted by relevance

/third_party/json/test/src/
Dunit-to_chars.cpp150 auto check_float = [](float number, const std::string & digits, int expected_exponent) variable
165 check_float(make_float(0, 0, 0x00000001), "1", -45); // min denormal
166 check_float(make_float(0, 0, 0x007FFFFF), "11754942", -45); // max denormal
167 check_float(make_float(0, 1, 0x00000000), "11754944", -45); // min normal
168 check_float(make_float(0, 1, 0x00000001), "11754945", -45);
169 check_float(make_float(0, 1, 0x007FFFFF), "23509886", -45);
170 check_float(make_float(0, 2, 0x00000000), "23509887", -45);
171 check_float(make_float(0, 2, 0x00000001), "2350989", -44);
172check_float(make_float(0, 24, 0x00000000), "98607613", -39); // fail if no special case in normal…
173check_float(make_float(0, 30, 0x00000000), "63108872", -37); // fail if no special case in normal…
[all …]
/third_party/boost/libs/program_options/example/
Dconfig_file_types.cpp18 bool check_float(double test, double expected) in check_float() function
208 assert(check_float(vm["floats.positive"].as<float>(), expected_float_positive)); in check_results()
209 assert(check_float(vm["floats.negative"].as<float>(), expected_float_negative)); in check_results()
210 assert(check_float(vm["floats.double"].as<double>(), expected_float_double)); in check_results()
211 assert(check_float(vm["floats.int"].as<float>(), expected_float_int)); in check_results()
212 assert(check_float(vm["floats.int_dot"].as<float>(), expected_float_int_dot)); in check_results()
213 assert(check_float(vm["floats.dot"].as<float>(), expected_float_dot)); in check_results()
214 assert(check_float(vm["floats.exp_lower"].as<float>(), expected_float_exp_lower)); in check_results()
215 assert(check_float(vm["floats.exp_upper"].as<float>(), expected_float_exp_upper)); in check_results()
216 assert(check_float(vm["floats.exp_decimal"].as<float>(), expected_float_exp_decimal)); in check_results()
[all …]
/third_party/PyYAML/tests/lib/
Dtest_schema.py22 def check_float(value, expected): function
57 'float': [float, check_float],
58 'inf': [float, check_float],
59 'nan': [float, check_float],
/third_party/mesa3d/src/mesa/tnl/
Dt_vb_program.c54 check_float(float x) in check_float() function
360 check_float(data[0]); in run_vp()
361 check_float(data[1]); in run_vp()
362 check_float(data[2]); in run_vp()
363 check_float(data[3]); in run_vp()
376 check_float(machine->Outputs[attr][0]); in run_vp()
377 check_float(machine->Outputs[attr][1]); in run_vp()
378 check_float(machine->Outputs[attr][2]); in run_vp()
379 check_float(machine->Outputs[attr][3]); in run_vp()
/third_party/mesa3d/src/intel/compiler/
Dbrw_debug_recompile.c55 #define check_float(name, field) \ macro
79 found |= check_float("scale factor", scale_factors[i]); in debug_sampler_recompile()
/third_party/boost/libs/algorithm/test/
Dclamp_test.cpp310 BOOST_CXX14_CONSTEXPR bool check_float = ( 56 == ba::clamp ( foo, 56.9, 129 )); in test_constexpr() local
311 BOOST_CHECK(check_float); in test_constexpr()
/third_party/mindspore/mindspore/
D_checkparam.py307 def check_float(arg_value, value, rel, arg_name=None, prim_name=None): member in Validator