Home
last modified time | relevance | path

Searched refs:num2 (Results 1 – 25 of 42) sorted by relevance

12

/third_party/jerryscript/tests/unit-core/
Dtest-api-set-and-clear-error-flag.c100 jerry_value_t num2 = jerry_create_error_from_value (num, false); in main() local
101 TEST_ASSERT (jerry_value_is_error (num2)); in main()
103 num2 = jerry_get_value_from_error (num2, true); in main()
104 TEST_ASSERT (jerry_get_number_value (num2) == test_num); in main()
105 jerry_release_value (num2); in main()
108 num2 = jerry_create_error_from_value (num, true); in main()
109 TEST_ASSERT (jerry_value_is_error (num2)); in main()
110 num2 = jerry_get_value_from_error (num2, true); in main()
111 TEST_ASSERT (jerry_get_number_value (num2) == test_num); in main()
112 jerry_release_value (num2); in main()
[all …]
/third_party/e2fsprogs/resize/
Dtest_extent.c24 __u64 num1, num2; in do_test() local
52 num1 = num2 = 0; in do_test()
65 num2 = strtoul(arg2, 0, 0); in do_test()
86 retval = ext2fs_add_extent_entry(extent, num1, num2); in do_test()
90 num2 = ext2fs_extent_translate(extent, num1); in do_test()
92 (unsigned long long) num2, in do_test()
93 num2 ? "" : " (not found)"); in do_test()
102 &num1, &num2, &size); in do_test()
109 (unsigned long long) num2, in do_test()
/third_party/mindspore/mindspore/core/mindrt/include/actor/
Dlog.h91 [](uint32_t firstNum, uint32_t num1, uint32_t num2) { \
94 return ((LOG_CHECK_ID <= firstNum) || (LOG_CHECK_ID < num2 && LOG_CHECK_ID % num1 == 0) || \
95 (LOG_CHECK_ID % num2 == 0)); \
99 [](uint32_t firstNum, uint32_t num1, uint32_t num2, uint32_t num3) { \
102 return ((LOG_CHECK_ID <= firstNum) || (LOG_CHECK_ID < num2 && LOG_CHECK_ID % num1 == 0) || \
103 (LOG_CHECK_ID < num3 && LOG_CHECK_ID % num2 == 0) || (LOG_CHECK_ID % num3 == 0)); \
107 …[](uint32_t firstNum, uint32_t num1, uint32_t num2, uint32_t num3, uint32_t num4) { …
110 …return ((LOG_CHECK_ID <= firstNum) || (LOG_CHECK_ID < num2 && LOG_CHECK_ID % num1 == 0) || …
111 …(LOG_CHECK_ID < num3 && LOG_CHECK_ID % num2 == 0) || (LOG_CHECK_ID < num4 && LOG_CHECK_ID % num3 =…
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/soft_dvpp/utils/
Dsoft_jpegd.cc30 const int32_t num2 = 2; variable
58 …eg_handler->comp_info[0].h_samp_factor == ((libjpeg_handler->comp_info[1].h_samp_factor) * num2)) { in SetFormat()
59 …eg_handler->comp_info[0].v_samp_factor == ((libjpeg_handler->comp_info[1].v_samp_factor) * num2)) { in SetFormat()
139 *width = AlignUp(*width, num2); in AllocOutputBuffer()
140 *height = AlignUp(*height, num2); in AllocOutputBuffer()
141 output_size = (*width) * (*height) * channel3 / num2; in AllocOutputBuffer()
158 (*width % num2 == 1)) { in ConfigVpcInputData()
159 *width = reinterpret_cast<int32_t>(AlignUp(*width, num2)); in ConfigVpcInputData()
164 (*height % num2 == 1)) { in ConfigVpcInputData()
165 *height = reinterpret_cast<int32_t>(AlignUp(*height, num2)); in ConfigVpcInputData()
[all …]
Dsoft_dp.cc24 const int32_t num2 = 2; variable
89 …if ((vpc_input_info.real_width % num2 == 1) && ((uint32_t)vpc_input_info.real_width == crop.right)… in DecodeAndCropAndResizeJpeg()
94 …if ((vpc_input_info.real_height % num2 == 1) && ((uint32_t)vpc_input_info.real_height == crop.down… in DecodeAndCropAndResizeJpeg()
Dsoft_vpc.cc38 constexpr uint32_t num2 = 2; variable
726 uu = in_u_data_[((j - (j % num2)) * (in_width_ / yuvCoeffiNum2)) + (i / yuvCoeffiNum2)]; in YuvToRgb()
727 vv = in_v_data_[((j - (j % num2)) * (in_width_ / yuvCoeffiNum2)) + (i / yuvCoeffiNum2)]; in YuvToRgb()
/third_party/mindspore/mindspore/core/utils/
Dcheck_convert_utils.h128 {kEqual, [](T num1, T num2) -> bool { return num1 == num2; }},
129 {kNotEqual, [](T num1, T num2) -> bool { return num1 != num2; }},
130 {kLessThan, [](T num1, T num2) -> bool { return num1 < num2; }},
131 {kLessEqual, [](T num1, T num2) -> bool { return num1 <= num2; }},
132 {kGreaterThan, [](T num1, T num2) -> bool { return num1 > num2; }},
133 {kGreaterEqual, [](T num1, T num2) -> bool { return num1 >= num2; }}};
/third_party/boost/libs/spirit/test/karma/
Dgrammar.cpp33 num2 = int_(456); in num_list()
35 start = num1 << ',' << num2 << ',' << num3; in num_list()
38 karma::rule<outiter_type, space_type> start, num1, num2, num3; member
/third_party/boost/boost/intrusive/detail/
Dcommon_slist_algorithms.hpp116 std::size_t num1 = 0, num2 = 0; in stable_partition() local
124 ++num2; in stable_partition()
142 ++num2; in stable_partition()
158 info.num_2nd_partition = num2; in stable_partition()
/third_party/mindspore/mindspore/core/ops/
Dwhere.cc43 auto num2 = input_args[kInputIndex2]->BuildValue()->cast<tensor::TensorPtr>()->ElementsNum(); in WhereInfer() local
44 auto nummax = num > num1 ? num : (num1 > num2 ? num1 : num2); in WhereInfer()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/
Dwhere_infer.c51 int num2 = GetElementNum(input2); in WhereInferShape() local
52 int nummax = num > num1 ? num : (num1 > num2 ? num1 : num2); in WhereInferShape()
/third_party/jerryscript/tests/jerry/
Darithmetics.js33 var num1 = 1234567, num2 = 1234000; variable
34 assert((num1 % num2) == 567);
/third_party/boost/boost/intrusive/
Dcircular_list_algorithms.hpp387 std::size_t num1 = 0, num2 = 0; in stable_partition() local
395 ++num2; in stable_partition()
415 ++num2; in stable_partition()
433 info.num_2nd_partition = num2; in stable_partition()
/third_party/boost/libs/asio/include/boost/asio/detail/
Dchrono_time_traits.hpp158 const int64_t num2 = Num / gcd<period_type::num, Num>::value; in duration_cast() local
164 const int64_t den = num2 * den1; in duration_cast()
/third_party/boost/boost/asio/detail/
Dchrono_time_traits.hpp158 const int64_t num2 = Num / gcd<period_type::num, Num>::value; in duration_cast() local
164 const int64_t den = num2 * den1; in duration_cast()
/third_party/jerryscript/tests/unit-ext/
Dtest-ext-arg.c467 uint8_t num0, num1, num2; in test_validator_int1_handler() local
476 …jerryx_arg_uint8 (&num2, JERRYX_ARG_ROUND, JERRYX_ARG_CLAMP, JERRYX_ARG_COERCE, JERRYX_ARG_REQUIRE… in test_validator_int1_handler()
496 TEST_ASSERT (num2 == 128); in test_validator_int1_handler()
522 int8_t num0, num1, num2, num3, num4, num5, num6, num7, num8, num9; in test_validator_int2_handler() local
530 …jerryx_arg_int8 (&num2, JERRYX_ARG_CEIL, JERRYX_ARG_CLAMP, JERRYX_ARG_COERCE, JERRYX_ARG_REQUIRED), in test_validator_int2_handler()
548 TEST_ASSERT (num2 == -1); in test_validator_int2_handler()
/third_party/gstreamer/gstplugins_bad/sys/mediafoundation/
Dgstmfsourceobject.c393 gint num1 = 0, den1 = 1, num2 = 0, den2 = 1; in gst_mf_source_object_caps_compare() local
438 gst_structure_get_fraction (s2, "framerate", &num2, &den2); in gst_mf_source_object_caps_compare()
440 fraction_cmp = gst_util_fraction_compare (num1, den1, num2, den2); in gst_mf_source_object_caps_compare()
/third_party/ffmpeg/libavcodec/
Dwmavoice.c1210 int num2 = (val & 0x1FF) >> 1, delta, idx; in aw_pulse_set1() local
1212 if (num2 < 1 * 79) { delta = 1; idx = num2 + 1; } in aw_pulse_set1()
1213 else if (num2 < 2 * 78) { delta = 3; idx = num2 + 1 - 1 * 77; } in aw_pulse_set1()
1214 else if (num2 < 3 * 77) { delta = 5; idx = num2 + 1 - 2 * 76; } in aw_pulse_set1()
1215 else { delta = 7; idx = num2 + 1 - 3 * 75; } in aw_pulse_set1()
/third_party/python/Modules/
Dselectmodule.c906 PyObject *value, *num1, *num2; in select_devpoll_poll_impl() local
982 num2 = PyLong_FromLong(self->fds[i].revents); in select_devpoll_poll_impl()
983 if ((num1 == NULL) || (num2 == NULL)) { in select_devpoll_poll_impl()
985 Py_XDECREF(num2); in select_devpoll_poll_impl()
988 value = PyTuple_Pack(2, num1, num2); in select_devpoll_poll_impl()
990 Py_DECREF(num2); in select_devpoll_poll_impl()
/third_party/boost/boost/math/tools/
Dunivariate_statistics.hpp57 Real num2 = num1 + Real(elements % 4); in mean() local
65 return (num1*(mu0+mu1+mu2) + num2*mu3)/Real(elements); in mean()
/third_party/boost/boost/math/statistics/
Dunivariate_statistics.hpp55 Real num2 = num1 + Real(elements % 4); in mean() local
63 return (num1*(mu0+mu1+mu2) + num2*mu3)/Real(elements); in mean()
/third_party/typescript/tests/cases/test262-harness/
Dhelpers.d.ts78 declare function isEqual(num1: any, num2: any): boolean;
/third_party/boost/libs/spirit/doc/karma/
Ddirective.qbk300 [[`num, num1, num2`][Numeric literals, any unsigned integer value, or
328 [[`repeat(num1, num2)[a]`] [Repeat the generator `a` at least `num1`
329 times but not more than `num2` times. This
337 than `num2` elements, this directive
338 limits the repeat count to `num2`. ]]
367 [[`repeat(num1, num2)[a]`]
368 [``a: A --> repeat(num1, num2)[a]: vector<A>
369 a: Unused --> repeat(num1, num2)[a]: Unused``]]
/third_party/e2fsprogs/e2fsck/
Dpass4.c129 pctx.num2 = actual_refs; in check_ea_inode()
Dproblem.h23 __u64 num, num2; member

12