Home
last modified time | relevance | path

Searched refs:t2 (Results 1 – 25 of 137) sorted by relevance

123456

/ohos5.0/foundation/graphic/graphic_utils_lite/frameworks/
H A Dgraphic_math.cpp105 float t2; in FastAtan2() local
109 t2 = t * t; in FastAtan2()
110 …angle = static_cast<uint16_t>(t * (1 + t2 * (ATAN2_P3 + t2 * (ATAN2_P5 + t2 * ATAN2_P7))) * RADIAN… in FastAtan2()
113 t2 = t * t; in FastAtan2()
115 …static_cast<uint16_t>(t * (1 + t2 * (ATAN2_P3 + t2 * (ATAN2_P5 + t2 * ATAN2_P7))) * RADIAN_TO_ANGL… in FastAtan2()
139 float t2; in FastAtan2F() local
143 t2 = t * t; in FastAtan2F()
144 angle = UI_PI / 2 - (t * (1 + t2 * (ATAN2_P3 + t2 * (ATAN2_P5 + t2 * ATAN2_P7)))); in FastAtan2F()
147 t2 = t * t; in FastAtan2F()
148 angle = (t * (1 + t2 * (ATAN2_P3 + t2 * (ATAN2_P5 + t2 * ATAN2_P7)))); in FastAtan2F()
H A Dtrans_affine.cpp38 float t2 = data_[1] * metrix.data_[0] + data_[4] * metrix.data_[1]; in Multiply() local
44 data_[1] = t2; in Multiply()
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/
H A Dbenchmark_assert.h22 void AssertEqual(const T1 &t1, const T2 &t2, const char* printInfo, benchmark::State& state) in AssertEqual() argument
24 if (t1 != t2) { in AssertEqual()
30 void AssertUnequal(const T1 &t1, const T2 &t2, const char* printInfo, benchmark::State& state) in AssertUnequal() argument
32 if (t1 == t2) { in AssertUnequal()
54 void AssertLessThan(const T1 &t1, const T2 &t2, const char* printInfo, benchmark::State& state) in AssertLessThan() argument
56 if (t1 >= t2) { in AssertLessThan()
62 void AssertLessThanOrEqual(const T1 &t1, const T2 &t2, const char* printInfo, benchmark::State& sta… in AssertLessThanOrEqual() argument
64 if (t1 > t2) { in AssertLessThanOrEqual()
70 void AssertGreaterThan(const T1 &t1, const T2 &t2, const char* printInfo, benchmark::State& state) in AssertGreaterThan() argument
72 if (t1 <= t2) { in AssertGreaterThan()
[all …]
/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dresource_manager_performance_test.cpp142 auto t2 = std::chrono::high_resolution_clock::now(); in ParseIndexCost() local
234 auto t2 = std::chrono::high_resolution_clock::now(); variable
269 auto t2 = std::chrono::high_resolution_clock::now(); variable
463 auto t2 = std::chrono::high_resolution_clock::now(); variable
489 auto t2 = std::chrono::high_resolution_clock::now(); variable
710 auto t2 = std::chrono::high_resolution_clock::now(); variable
736 auto t2 = std::chrono::high_resolution_clock::now(); variable
765 auto t2 = std::chrono::high_resolution_clock::now(); variable
791 auto t2 = std::chrono::high_resolution_clock::now(); variable
820 auto t2 = std::chrono::high_resolution_clock::now(); variable
[all …]
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
H A Dresource_manager_performance_test.cpp179 auto t2 = std::chrono::high_resolution_clock::now(); in TestLoadFromIndex() local
227 auto t2 = std::chrono::high_resolution_clock::now(); variable
262 auto t2 = std::chrono::high_resolution_clock::now(); variable
456 auto t2 = std::chrono::high_resolution_clock::now(); variable
482 auto t2 = std::chrono::high_resolution_clock::now(); variable
703 auto t2 = std::chrono::high_resolution_clock::now(); variable
729 auto t2 = std::chrono::high_resolution_clock::now(); variable
758 auto t2 = std::chrono::high_resolution_clock::now(); variable
784 auto t2 = std::chrono::high_resolution_clock::now(); variable
813 auto t2 = std::chrono::high_resolution_clock::now(); variable
[all …]
/ohos5.0/base/global/i18n/frameworks/zone/test/unittest/
H A Dzone_util_performance_test.cpp67 auto t2 = std::chrono::high_resolution_clock::now(); variable
68 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
93 auto t2 = std::chrono::high_resolution_clock::now(); variable
117 auto t2 = std::chrono::high_resolution_clock::now(); variable
118 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
140 auto t2 = std::chrono::high_resolution_clock::now(); variable
141 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
163 auto t2 = std::chrono::high_resolution_clock::now(); variable
164 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
186 auto t2 = std::chrono::high_resolution_clock::now(); variable
[all …]
/ohos5.0/base/update/updater/test/unittest/test_data/src/
H A Dtest_math.us29 t2 = 5 + 6;
30 t3 = (t1 + t2) * (t1 - t2);
31 t4 = t1 / t2;
33 Stdout(t1, t2, t3, t4);
35 Stdout(t1, t2, t3, t4);
/ohos5.0/base/update/updater/test/fuzztest/fuzz_src_data/
H A Dtest_math.us29 t2 = 5 + 6;
30 t3 = (t1 + t2) * (t1 - t2);
31 t4 = t1 / t2;
33 Stdout(t1, t2, t3, t4);
35 Stdout(t1, t2, t3, t4);
/ohos5.0/foundation/multimedia/media_foundation/interface/inner_api/cpp_ext/
H A Dtype_cast_ext.h34 inline bool IsSameType(const std::type_info &t1, const std::type_info &t2) noexcept in IsSameType() argument
36 if (t1 == t2) { in IsSameType()
40 if (t1Length == strlen(t2.name()) && strncmp(t1.name(), t2.name(), t1Length) == 0) { in IsSameType()
46 inline bool IsSameType(std::string_view t1, std::string_view t2) noexcept
48 return std::string(t1) == std::string(t2);
/ohos5.0/foundation/multimedia/media_foundation/engine/include/plugin/common/
H A Dtype_cast_ext.h35 inline bool IsSameType(const std::type_info& t1, const std::type_info& t2) noexcept in IsSameType() argument
37 if (t1 == t2) { in IsSameType()
41 if (t1Length == strlen(t2.name()) && strncmp(t1.name(), t2.name(), t1Length) == 0) { in IsSameType()
47 inline bool IsSameType(std::string_view t1, std::string_view t2) noexcept
49 return std::string(t1) == std::string(t2);
/ohos5.0/foundation/arkui/ui_lite/frameworks/animator/
H A Dinterpolation.cpp27 int64_t t2 = t * t; in GetBezierInterpolation() local
28 int64_t t3 = t2 * t; in GetBezierInterpolation()
32 ret += BEZIER_COEFFICIENT * invT * t2 * u2; in GetBezierInterpolation()
46 float t2 = t * t; in GetBezierInterpolation() local
47 float t3 = t2 * t; in GetBezierInterpolation()
51 ret += BEZIER_COEFFICIENT * invT * t2 * u2; in GetBezierInterpolation()
/ohos5.0/commonlibrary/c_utils/base/src/
H A Ddatetime_ex.cpp77 auto t2 = t1; in GetLocalTimeZone() local
81 struct tm* gmTime = gmtime_r(&t2, &curTime2); in GetLocalTimeZone()
87 t2 = mktime(&curTime2); in GetLocalTimeZone()
88 if ((t1 == -1) || (t2 == -1)) { in GetLocalTimeZone()
93 timezone = (static_cast<int>(t1 - t2)) / SECONDS_PER_HOUR; in GetLocalTimeZone()
/ohos5.0/docs/zh-cn/contribute/
H A DOpenHarmony-64bits-coding-guide.md462 int64_t t2 = 1;
463 int32_t t3 = t1 + t2;
469 t1是个32位数,t2是个64位数,在做运算之前,先把t1也扩展成64位的。加法完成之后结果是一个64位的int64_t类型,在内存中16进制存储值为:0xffffffffffffffff,在给32…
475 uint32_t t2 = t1;
476 printf("t2=%u", t2);
478 // 打印结果:t2=4294967295
487 uint64_t t2 = t1;
488 printf("t2 = %lu\n", t2);
490 // 打印结果:t2 = 18446744073709551615
/ohos5.0/foundation/ai/ai_engine/services/common/utils/
H A Dinf_cast_impl.h76 static I* Create(T1& t1, T2& t2) in Create() argument
79 AIE_NEW(p, C(t1, t2)); in Create()
93 static I* Create(T1& t1, T2& t2, T3& t3) in Create() argument
96 AIE_NEW(p, C(t1, t2, t3)); in Create()
/ohos5.0/base/security/access_token/frameworks/common/src/
H A Dtime_util.cpp40 struct tm t2 = {0}; in IsTimeStampsSameMinute() local
42 localtime_r(&time2, &t2); in IsTimeStampsSameMinute()
44 return t1.tm_min == t2.tm_min; in IsTimeStampsSameMinute()
/ohos5.0/foundation/resourceschedule/ffrt/test/ut/testcase/
H A Dut_csync.cpp820 std::thread t2(f1, n + 1); variable
821 t2.detach(); // test detach
824 std::thread t2(f1, n + 1); // pass by value variable
830 EXPECT_EQ(t2.joinable(), true);
831 t2.join();
832 EXPECT_EQ(t2.joinable(), false);
846 ffrt::thread t2(f1, n + 1); variable
847 t2.detach(); // test detach
856 EXPECT_EQ(t2.joinable(), true);
857 t2.join();
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/
H A Dspline.h26 inline constexpr T Hermite(T const& v1, T const& t1, T const& v2, T const& t2, float s) in BASE_BEGIN_NAMESPACE()
38 return v1 * f1 + v2 * f2 + t1 * f3 + t2 * f4; in BASE_BEGIN_NAMESPACE()
/ohos5.0/docs/zh-cn/application-dev/napi/
H A Djsvm-guidelines.md163 // t2线程会在获取锁处阻塞,直到t1线程执行结束释放锁后,t2线程继续执行,调用JSVM-API接口
194 std::thread t2([]() {
201 OH_LOG_INFO(LOG_APP, "JSVM:t2 OH_JSVM_CreateInt32 suc");
203 OH_LOG_ERROR(LOG_APP, "JSVM:t2 OH_JSVM_CreateInt32 fail");
207 OH_LOG_INFO(LOG_APP, "JSVM:t2 num1 = %{public}d", num1);
211 t2.detach();
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/common/include/
H A Dcgroup_sched_common.h47 Clock::time_point t2 = Clock::now(); in ~ChronoScope() local
48 MilliSecondsType time_span = std::chrono::duration_cast<MilliSecondsType>(t2 - t1); in ~ChronoScope()
/ohos5.0/docs/zh-cn/application-dev/performance/
H A Dhigh-performance-programming.md121 getInfo(t1, t2) {
122 if (!this.check(t1, t2)) {
128 let t1= info[t2];
147 getInfo(t1, t2) {
148 if (!this.check(t1, t2)) {
154 let t1= info.get(t2);
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/v2/
H A Dv2_json_coder.ts185 const t2 = Array.isArray(target);
187 if (t1 && t2) {
189 } else if (!t1 && !t2) {
192 throw new Error(`The type of target '${t2}' mismatches the type of source '${t1}'`);
/ohos5.0/base/hiviewdfx/hitrace/cmd/example/
H A Dhitrace_example.cpp134 thread t2(ThreadFunc2, label); in FuncMain() local
135 t2.join(); in FuncMain()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/
H A Drofs_filesystem.cpp182 const size_t t2 = tmp.find_first_of('/', t); in RoFileSystem() local
183 if (t2 == string::npos) { in RoFileSystem()
186 t = t2; in RoFileSystem()
/ohos5.0/commonlibrary/rust/ylong_json/
H A DREADME_zh.md121 - 利用 `data`,序列化生成 100 次 `JSON` 文本,取较小的处理时间 `t2`。
122 - 计算解析速度,反序列化时间为 `content` 的长度除以 `t1`,序列化时间为 `JSON` 文本长度除以 `t2`。
/ohos5.0/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/src/
H A Dosal_all_test.c80 uint64_t t2 = (uint64_t)ms * HDF_KILO_UNIT; in OsalCheckTime() local
81 uint64_t diff = (t1 < t2) ? (t2 - t1) : (t1 - t2); in OsalCheckTime()
82 uint64_t timeRange = t2 / DENOMINATOR * NUMERATOR; in OsalCheckTime()

123456