/third_party/ltp/lib/newlib_tests/ |
H A D | test_timer.c | 18 struct tst_ts ts1, ts2; in test_diff() local 22 ts2 = tst_ts_from_us(type, VAL_US); in test_diff() 24 diff = tst_ts_diff_ns(ts1, ts2); in test_diff() 31 diff = tst_ts_diff_ns(ts1, ts2); in test_diff() 38 diff = tst_ts_diff_ms(ts1, ts2); in test_diff() 48 struct tst_ts ts1, ts2; in test_lt() local 51 ts2 = tst_ts_from_us(type, VAL_US + 1); in test_lt() 53 if (tst_ts_lt(ts1, ts2)) in test_lt() 54 tst_res(TPASS, "ts1 < ts2"); in test_lt() 56 tst_res(TFAIL, "ts1 >= ts2"); in test_lt() [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
H A D | TestUtilities.java | 31 TreeSet ts2 = new TreeSet(); in TestCollectionUtilitySpeed() 38 ts2.add(prefix + String.valueOf(i) + postfix); in TestCollectionUtilitySpeed() 41 CollectionUtilities.containsAll(ts1, ts2); in TestCollectionUtilitySpeed() 42 ts1.containsAll(ts2); in TestCollectionUtilitySpeed() 44 timeAndCompare(ts1, ts2, iterations, true, .75); in TestCollectionUtilitySpeed() 47 timeAndCompare(ts1, ts2, iterations, true, .75); in TestCollectionUtilitySpeed() 48 timeAndCompare(ts2, ts1, iterations*100, false, 1.05); in TestCollectionUtilitySpeed() 51 private void timeAndCompare(TreeSet ts1, TreeSet ts2, int iterations, boolean expected, double factorOfStandard) { in timeAndCompare() argument 52 double utilityTimeSorted = timeUtilityContainsAll(iterations, ts1, ts2, expected)/(double)iterations; in timeAndCompare() 53 double standardTimeSorted = timeStandardContainsAll(iterations, ts1, ts2, expecte in timeAndCompare() [all...] |
/third_party/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/util/ |
H A D | TestUtilities.java | 28 TreeSet ts2 = new TreeSet(); in TestCollectionUtilitySpeed() 35 ts2.add(prefix + String.valueOf(i) + postfix); in TestCollectionUtilitySpeed() 38 CollectionUtilities.containsAll(ts1, ts2); in TestCollectionUtilitySpeed() 39 ts1.containsAll(ts2); in TestCollectionUtilitySpeed() 41 timeAndCompare(ts1, ts2, iterations, true, .75); in TestCollectionUtilitySpeed() 44 timeAndCompare(ts1, ts2, iterations, true, .75); in TestCollectionUtilitySpeed() 45 timeAndCompare(ts2, ts1, iterations*100, false, 1.05); in TestCollectionUtilitySpeed() 48 private void timeAndCompare(TreeSet ts1, TreeSet ts2, int iterations, boolean expected, double factorOfStandard) { in timeAndCompare() argument 49 double utilityTimeSorted = timeUtilityContainsAll(iterations, ts1, ts2, expected)/(double)iterations; in timeAndCompare() 50 double standardTimeSorted = timeStandardContainsAll(iterations, ts1, ts2, expecte in timeAndCompare() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/ |
H A D | 3-1.c | 23 struct timespec ts1, ts2, ts3, ts4; in main() local 36 if (clock_gettime(CLOCK_MONOTONIC, &ts2) != 0) { in main() 54 if ((ts1.tv_sec <= ts2.tv_sec) && in main() 55 (ts2.tv_sec <= ts3.tv_sec) && (ts3.tv_sec <= ts4.tv_sec)) { in main() 60 printf("Test FAILED - ts1=%ld,ts2=%ld,ts3=%ld,ts4=%ld\n", in main() 61 ts1.tv_sec, ts2.tv_sec, ts3.tv_sec, ts4.tv_sec); in main()
|
H A D | 4-1.c | 37 struct timespec ts1, ts2, ts3, ts4; in main() 51 if (clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts2) != 0) { in main() 70 if ((ts1.tv_sec <= ts2.tv_sec) && in main() 71 (ts2.tv_sec <= ts3.tv_sec) && (ts3.tv_sec <= ts4.tv_sec)) { in main() 76 printf("Test FAILED - ts1=%ld,ts2=%ld,ts3=%ld,ts4=%ld\n", in main() 77 ts1.tv_sec, ts2.tv_sec, ts3.tv_sec, ts4.tv_sec); in main()
|
/third_party/python/Lib/test/ |
H A D | test_graphlib.py | 110 ts2 = graphlib.TopologicalSorter({1: {2, 3, 4, 5}}) 111 self.assertEqual([*ts.static_order()], [*ts2.static_order()]) 216 ts2 = graphlib.TopologicalSorter() 217 ts2.add(1, 0) 218 ts2.add(3, 2, 1) 219 ts2.add(4, 7) 220 ts2.add(6, 7) 221 ts2.add(4, 5) 223 self.assertEqual(list(get_groups(ts)), list(get_groups(ts2)))
|
/third_party/ltp/include/ |
H A D | tst_timer.h | 782 * Returns if ts1 less than ts2. Both ts1 and ts2 must be normalized. 784 static inline int tst_timespec_lt(struct timespec ts1, struct timespec ts2) in tst_timespec_lt() argument 786 return tst_ts_lt(tst_ts_from_timespec(ts1), tst_ts_from_timespec(ts2)); in tst_timespec_lt() 882 tst_timespec_add(struct timespec ts1, struct timespec ts2) in tst_timespec_add() argument 886 res = tst_ts_add(tst_ts_from_timespec(ts1), tst_ts_from_timespec(ts2)); in tst_timespec_add() 909 tst_timespec_diff(struct timespec ts1, struct timespec ts2) in tst_timespec_diff() argument 913 res = tst_ts_diff(tst_ts_from_timespec(ts1), tst_ts_from_timespec(ts2)); in tst_timespec_diff() 931 tst_timespec_diff_ns(struct timespec ts1, struct timespec ts2) in tst_timespec_diff_ns() argument 933 return tst_ts_diff_ns(tst_ts_from_timespec(ts1), tst_ts_from_timespec(ts2)); in tst_timespec_diff_ns() 949 tst_timespec_diff_us(struct timespec ts1, struct timespec ts2) tst_timespec_diff_us() argument 967 tst_timespec_diff_ms(struct timespec ts1, struct timespec ts2) tst_timespec_diff_ms() argument 999 tst_timespec_abs_diff_us(struct timespec ts1, struct timespec ts2) tst_timespec_abs_diff_us() argument [all...] |
/third_party/musl/libc-test/src/functionalext/common/ |
H A D | pthread_util.h | 75 static inline int GetTimeDiff(struct timespec ts1, struct timespec ts2) in GetTimeDiff() argument 78 int ms = (ts1.tv_sec - ts2.tv_sec) * nsecPerSec + (ts1.tv_nsec - ts2.tv_nsec); in GetTimeDiff()
|
/third_party/ffmpeg/libavformat/ |
H A D | sbgdec.c | 145 int64_t ts1, ts2; member 1028 int64_t ts2, int32_t f2, int32_t a2) in add_interval() 1038 ri->ts2 == ts1) { in add_interval() 1039 ri->ts2 = ts2; in add_interval() 1048 i->ts2 = ts2; in add_interval() 1060 int64_t ts1, int64_t ts2, int32_t f, int32_t a) in add_bell() 1076 ts4 = FFMIN(ts2, ts1 + cpoints[i][0] * dt); in add_bell() 1089 int64_t ts1, int64_t ts2, in generate_interval() 1025 add_interval(struct ws_intervals *inter, enum ws_interval_type type, uint32_t channels, int ref, int64_t ts1, int32_t f1, int32_t a1, int64_t ts2, int32_t f2, int32_t a2) add_interval() argument 1059 add_bell(struct ws_intervals *inter, struct sbg_script *s, int64_t ts1, int64_t ts2, int32_t f, int32_t a) add_bell() argument 1087 generate_interval(void *log, struct sbg_script *s, struct ws_intervals *inter, int64_t ts1, int64_t ts2, struct sbg_script_synth *s1, struct sbg_script_synth *s2, int transition) generate_interval() argument 1170 int64_t ts1 = ev1->ts_int, ts2 = ev1->ts_trans; generate_plateau() local 1200 int64_t ts1 = ev1->ts_trans, ts2 = ev1->ts_next; generate_transition() local [all...] |
H A D | mux.c | 904 int64_t ts, ts2; in interleave_compare_dts() local 908 ts2= av_rescale_q(next->dts, st2->time_base, AV_TIME_BASE_Q) - preload2; in interleave_compare_dts() 909 if (ts == ts2) { in interleave_compare_dts() 912 ts2 = 0; in interleave_compare_dts() 914 comp = (ts2 > ts) - (ts2 < ts); in interleave_compare_dts()
|
H A D | avidec.c | 1838 int64_t ts2 = av_rescale_q(timestamp, st->time_base, st2->time_base); in seek_subtitle() local 1840 if (avformat_seek_file(ast2->sub_ctx, 0, INT64_MIN, ts2, ts2, 0) >= 0 || in seek_subtitle() 1841 avformat_seek_file(ast2->sub_ctx, 0, ts2, ts2, INT64_MAX, 0) >= 0) in seek_subtitle()
|
/third_party/node/deps/openssl/openssl/crypto/ |
H A D | o_time.c | 31 struct tm data, *ts2 = &data; in OPENSSL_gmtime() local 35 if (gmtime_r(timer, ts2) == NULL) in OPENSSL_gmtime() 37 memcpy(result, ts2, sizeof(struct tm)); in OPENSSL_gmtime()
|
/third_party/openssl/crypto/ |
H A D | o_time.c | 31 struct tm data, *ts2 = &data; in OPENSSL_gmtime() local 35 if (gmtime_r(timer, ts2) == NULL) in OPENSSL_gmtime() 37 memcpy(result, ts2, sizeof(struct tm)); in OPENSSL_gmtime()
|
/third_party/musl/libc-test/src/functionalext/supplement/time/time_gtest/ |
H A D | sys_clock_test.cpp | 195 timespec ts2; in HWTEST_F() local 196 result = clock_gettime(CLOCK_MONOTONIC, &ts2); in HWTEST_F() 199 auto end = std::chrono::seconds(ts2.tv_sec) + std::chrono::nanoseconds(ts2.tv_nsec); in HWTEST_F()
|
/third_party/lame/libmp3lame/ |
H A D | newmdct.c | 837 FLOAT tc0, tc1, tc2, ts0, ts1, ts2; in mdct_short() local 847 ts2 = -ts0 + tc0; in mdct_short() 861 ts2 = ts2 * 0.86602540378443870761 * 1.907525191737281e-11 /* tritab_s[0] */ ; in mdct_short() 862 inout[3 * 3] = tc1 + ts2; in mdct_short() 863 inout[3 * 4] = tc1 - ts2; in mdct_short() 908 FLOAT ts1, ts2, ts3, ts4, tc5, tc6, tc7, tc8; in mdct_long() local 924 ts2 = (in[7] - in[1]) * cx[6]; in mdct_long() 927 st = ts1 * cx[2] + ts2 + ts3 * cx[0] + ts4 * cx[1]; in mdct_long() 932 st = ts1 * cx[1] + ts2 in mdct_long() [all...] |
/third_party/python/Lib/test/test_sqlite3/ |
H A D | test_types.py | 508 ts2 = self.cur.fetchone()[0] 509 self.assertEqual(ts, ts2) 523 ts2 = self.cur.fetchone()[0] 524 self.assertEqual(ts, ts2) 530 ts2 = self.cur.fetchone()[0] 531 self.assertEqual(ts, ts2)
|
/third_party/typescript/tests/baselines/reference/ |
H A D | constAssertions.js | 80 const ts2 = ff2('foo', !!true ? '0' : '1'); 175 const ts2 = ff2('foo', !!true ? '0' : '1');
304 declare const ts2: "foo-1" | "foo-0";
|
/third_party/ffmpeg/libavcodec/ |
H A D | dca_lbr.c | 1168 LBRChunk ts2[DCA_LBR_CHANNELS / 2]; in ff_dca_lbr_parse() member 1350 chunk.ts2[i].len = chunk_len; in ff_dca_lbr_parse() 1351 chunk.ts2[i].data = gb.buffer; in ff_dca_lbr_parse() 1381 parse_ts2_chunk(s, &chunk.ts2[i], ch1, ch2) < 0) { in ff_dca_lbr_parse()
|
/third_party/skia/third_party/externals/spirv-tools/test/opt/ |
H A D | scalar_replacement_test.cpp | 1173 OpName %ts2 "ts2" in TEST_F() 1218 %ts2 = OpVariable %_ptr_Function_S Function in TEST_F() 1232 %40 = OpAccessChain %_ptr_Function_float %ts2 %int_0 in TEST_F() 1235 %42 = OpAccessChain %_ptr_Function_float %ts2 %int_1 in TEST_F() 1247 %50 = OpLoad %S %ts2 in TEST_F()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/ |
H A D | scalar_replacement_test.cpp | 1173 OpName %ts2 "ts2" in TEST_F() 1218 %ts2 = OpVariable %_ptr_Function_S Function in TEST_F() 1232 %40 = OpAccessChain %_ptr_Function_float %ts2 %int_0 in TEST_F() 1235 %42 = OpAccessChain %_ptr_Function_float %ts2 %int_1 in TEST_F() 1247 %50 = OpLoad %S %ts2 in TEST_F()
|
/third_party/spirv-tools/test/opt/ |
H A D | scalar_replacement_test.cpp | 1184 OpName %ts2 "ts2" in TEST_F() 1229 %ts2 = OpVariable %_ptr_Function_S Function in TEST_F() 1243 %40 = OpAccessChain %_ptr_Function_float %ts2 %int_0 in TEST_F() 1246 %42 = OpAccessChain %_ptr_Function_float %ts2 %int_1 in TEST_F() 1258 %50 = OpLoad %S %ts2 in TEST_F()
|
/third_party/selinux/libsepol/src/ |
H A D | module_to_cil.c | 918 struct type_set *ts1 = NULL, *ts2; in search_attr_list() local 931 ts2 = (struct type_set *)node->set; in search_attr_list() 932 if (ts1->flags != ts2->flags) in search_attr_list() 934 if (ebitmap_cmp(&ts1->negset, &ts2->negset) == 0) in search_attr_list() 936 if (ebitmap_cmp(&ts1->types, &ts2->types) == 0) in search_attr_list()
|