Home
last modified time | relevance | path

Searched refs:atol (Results 1 - 25 of 109) sorted by relevance

12345

/test/xts/acts/ai/mindspore/mindsporectest/src/
H A Dohos_common.cpp138 * atol:
143 float atol = 1e-08, bool isquant = false) { in allclose()
164 sum = sum + fabs(a[i] - b[i]) / (atol + rtol * fabs(b[i])); in allclose()
165 sum_all = sum_all + fabs(a[i] - b[i]) / (atol + rtol * fabs(b[i])); in allclose()
166 maximum = max(maximum, fabs(a[i] - b[i]) / (atol + rtol * fabs(b[i]))); in allclose()
167 minimum = min(minimum, fabs(a[i] - b[i]) / (atol + rtol * fabs(b[i]))); in allclose()
174 } else if (fabs(a[i] - b[i]) > (atol + rtol * fabs(b[i]))) { in allclose()
219 printf("\n *** These data compare failed: atol = %f, rtol = %f\n", atol, in allclose()
233 float atol in allclose_int8()
[all...]
H A Dohos_common.h44 float atol, bool isquant);
45 bool allclose_int8(int8_t *a, int8_t *b, uint64_t count, float rtol, float atol,
49 float atol, bool isquant);
/third_party/mindspore/test/utils/
H A Dcommon.cpp120 * atol:
125 float atol = 1e-08, bool isquant = false) { in allclose()
146 sum = sum + fabs(a[i] - b[i]) / (atol + rtol * fabs(b[i])); in allclose()
147 sum_all = sum_all + fabs(a[i] - b[i]) / (atol + rtol * fabs(b[i])); in allclose()
148 maximum = std::max(maximum, fabs(a[i] - b[i]) / (atol + rtol * fabs(b[i]))); in allclose()
149 minimum = std::min(minimum, fabs(a[i] - b[i]) / (atol + rtol * fabs(b[i]))); in allclose()
156 } else if (fabs(a[i] - b[i]) > (atol + rtol * fabs(b[i]))) { in allclose()
201 printf("\n *** These data compare failed: atol = %f, rtol = %f\n", atol, in allclose()
215 float atol in allclose_int8()
[all...]
H A Dcommon.h30 float atol, bool isquant);
31 bool allclose_int8(int8_t *a, int8_t *b, uint64_t count, float rtol, float atol,
35 float atol, bool isquant);
H A Dmodel_utils.h41 void CompareResult(OH_AI_TensorHandleArray outputs, std::string modelName, float atol = 0.01, float rtol = 0.01);
/third_party/ltp/testcases/kernel/fs/mongo/
H A Dreiser_fract_tree.c478 bytes_to_consume = atol(argv[1]); in main()
479 max_file_size = atol(argv[3]); in main()
480 median_file_size = atol(argv[2]); in main()
489 stats = atol(argv[10]); in main()
490 median_dir_branching = atol(argv[6]); in main()
491 max_dir_branching = atol(argv[7]); in main()
492 median_dir_nr_files = atol(argv[4]); in main()
493 max_dir_nr_files = atol(argv[5]); in main()
H A Dsumm.c20 n = atol(str); in main()
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/NativeAPI/
H A DNativeFunctionTest.cpp132 bitrate = atol(bitStr.c_str()); in getParamsByName()
143 bitrate = atol(bitStr.c_str()); in getParamsByName()
154 bitrate = atol(bitStr.c_str()); in getParamsByName()
165 bitrate = atol(bitStr.c_str()); in getParamsByName()
259 long bitrate = atol(bitStr.c_str()); in HWTEST_F()
305 long bitrate = atol(bitStr.c_str()); in HWTEST_F()
351 long bitrate = atol(bitStr.c_str()); in HWTEST_F()
397 long bitrate = atol(bitStr.c_str()); in HWTEST_F()
441 long bitrate = atol(bitStr.c_str()); in HWTEST_F()
486 long bitrate = atol(bitSt in HWTEST_F()
[all...]
H A DNativeStablityTest.cpp106 bitrate = atol(bitStr.c_str()); in GetParamsByName()
117 bitrate = atol(bitStr.c_str()); in GetParamsByName()
128 bitrate = atol(bitStr.c_str()); in GetParamsByName()
139 bitrate = atol(bitStr.c_str()); in GetParamsByName()
657 long bitrate = atol(bitStr.c_str()); in HWTEST_F()
746 long bitrate = atol(bitStr.c_str()); in HWTEST_F()
788 long bitrate = atol(bitStr.c_str()); in HWTEST_F()
/foundation/communication/dhcp/services/dhcp_server/src/
H A Ddhcp_binding.cpp187 binding->leaseTime = atol(strs[BINDING_LEASE_TIME_POS]); in ParseAddressBinding()
188 binding->bindingTime = atol(strs[BINDING_BINDING_TIME_POS]); in ParseAddressBinding()
189 binding->pendingTime = atol(strs[BINDING_PENDING_TIME_POS]); in ParseAddressBinding()
197 binding->pendingInterval = atol(strs[BINDING_PENDING_INTERVAL_POS]); in ParseAddressBinding()
/third_party/toybox/toys/other/
H A Dusleep.c21 long delay = atol(*toys.optargs); in usleep_main()
/third_party/musl/porting/uniproton/kernel/src/stdlib/
H A Datol.c4 long atol(const char *s) in atol() function
/third_party/musl/porting/liteos_m/kernel/src/stdlib/
H A Datol.c4 long atol(const char *s) in atol() function
/third_party/musl/src/stdlib/
H A Datol.c4 long atol(const char *s) in atol() function
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lws_smd/
H A Dmain.c201 how_many_msg = (unsigned int)atol(p); in main()
204 usec_interval = (unsigned int)atol(p); in main()
/third_party/zlib/contrib/testzlib/
H A Dtestzlib.c175 BlockSizeCompress=atol(argv[2]); in main()
178 BlockSizeUncompress=atol(argv[3]); in main()
181 cprLevel=(int)atol(argv[4]); in main()
/third_party/cups-filters/filter/
H A Dbannertopdf.c135 media_limits[0] = atol(val) * 72.0 / 2540.0; in get_pagesize()
138 media_limits[1] = atol(val) * 72.0 / 2540.0; in get_pagesize()
141 media_limits[2] = *width - atol(val) * 72.0 / 2540.0; in get_pagesize()
144 media_limits[3] = *length - atol(val) * 72.0 / 2540.0; in get_pagesize()
/third_party/libunwind/libunwind/tests/
H A DGperf-simple.c245 maxlevel = atol (argv[1]); in main()
247 iterations = atol (argv[2]); in main()
H A DGperf-trace.c231 maxlevel = atol (argv[1]); in main()
233 iterations = atol (argv[2]); in main()
H A Dforker.c42 count = atol (argv[1]); in main()
H A DGtest-exc.c159 depth = atol (argv[1]); in main()
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-smd/
H A Dminimal-secure-streams-smd.c272 how_many_msg = (unsigned int)atol(p); in main()
275 usec_interval = (unsigned int)atol(p); in main()
/third_party/skia/third_party/externals/libpng/contrib/examples/
H A Dpngpixel.c153 long x = atol(argv[1]); in main()
154 long y = atol(argv[2]); in main()
/third_party/libwebsockets/lib/secure-streams/
H A Dpolicy-json.c589 a->curr[LTY_METRICS].m->us_decay_unit = (uint32_t)atol(ctx->buf); in lws_ss_policy_parser_cb()
664 a->curr[LTY_POLICY].p->proxy_buflen = (uint32_t)atol(ctx->buf); in lws_ss_policy_parser_cb()
669 (uint32_t)atol(ctx->buf); in lws_ss_policy_parser_cb()
673 (uint32_t)atol(ctx->buf); in lws_ss_policy_parser_cb()
677 a->curr[LTY_POLICY].p->client_buflen = (uint32_t)atol(ctx->buf); in lws_ss_policy_parser_cb()
682 (uint32_t)atol(ctx->buf); in lws_ss_policy_parser_cb()
686 (uint32_t)atol(ctx->buf); in lws_ss_policy_parser_cb()
/test/xts/acts/kernel_lite/util_posix/src/
H A DActsUtilConvertApiTest.cpp383 * @tc.name test atol api with string
391 returnVal = atol(paraChar); in HWTEST_F()
392 LOGD(" atol c:='%s', returnVal:='%ld'\n", paraChar, returnVal); in HWTEST_F()
393 ASSERT_TRUE(0 == returnVal) << "ErrInfo: atol returnVal:='" << returnVal << "'"; in HWTEST_F()
398 * @tc.name test atol api with empty string
406 returnVal = atol(paraChar); in HWTEST_F()
407 LOGD(" atol c:='%s', returnVal:='%ld'\n", paraChar, returnVal); in HWTEST_F()
408 ASSERT_TRUE(0 == returnVal) << "ErrInfo: atol returnVal:='" << returnVal << "'"; in HWTEST_F()
413 * @tc.name test atol api with digit9
421 returnVal = atol(paraCha in HWTEST_F()
[all...]

Completed in 14 milliseconds

12345