/external/rust/crates/tinyvec/tests/ |
D | tinyvec.rs | 95 let mut tv2 = tv.clone(); in TinyVec_splice() localVariable 96 tv2.splice(.., None); in TinyVec_splice() 97 assert_eq!(tv2, tiny_vec![]); in TinyVec_splice() 99 let mut tv2 = tv.clone(); in TinyVec_splice() localVariable 100 tv2.splice(..2, None); in TinyVec_splice() 101 assert_eq!(tv2, tiny_vec![3]); in TinyVec_splice() 103 let mut tv2 = tv.clone(); in TinyVec_splice() localVariable 104 tv2.splice(..3, None); in TinyVec_splice() 105 assert_eq!(tv2, tiny_vec![]); in TinyVec_splice() 107 let mut tv2 = tv.clone(); in TinyVec_splice() localVariable [all …]
|
/external/ltp/testcases/kernel/syscalls/gettimeofday/ |
D | gettimeofday02.c | 44 struct timeval tv1, tv2; in verify_gettimeofday() local 57 if (gettimeofday(&tv2, NULL)) { in verify_gettimeofday() 62 if (tv2.tv_sec < tv1.tv_sec || in verify_gettimeofday() 63 (tv2.tv_sec == tv1.tv_sec && tv2.tv_usec < tv1.tv_usec)) { in verify_gettimeofday() 67 (intmax_t) tv2.tv_sec, (intmax_t) tv2.tv_usec); in verify_gettimeofday() 71 tv1 = tv2; in verify_gettimeofday()
|
/external/toybox/toys/net/ |
D | sntp.c | 74 struct timespec tv, tv2; in sntp_main() local 188 lunchtime(&tv2, diff); in sntp_main() 189 diff = nanodiff(&tv, &tv2); in sntp_main() 200 doublyso(SWAP_BE64(pktime[5]), &tv2); in sntp_main() 201 diff = nanodiff(&tv, &tv2); in sntp_main() 205 clock_gettime(CLOCK_REALTIME, &tv2); in sntp_main() 206 nanomove(&tv2, diff); in sntp_main() 207 if (clock_settime(CLOCK_REALTIME, &tv2)) in sntp_main() 213 nanomove(&tv2, diff); in sntp_main() 215 tx.offset = tv2.tv_sec*1000000+tv2.tv_nsec/1000; in sntp_main() [all …]
|
/external/toybox/toys/posix/ |
D | time.c | 30 struct timeval tv, tv2; in time_main() local 40 gettimeofday(&tv2, NULL); in time_main() 41 if (tv.tv_usec > tv2.tv_usec) { in time_main() 42 tv2.tv_usec += 1000000; in time_main() 43 tv2.tv_sec--; in time_main() 45 r = (tv2.tv_sec-tv.tv_sec)+((tv2.tv_usec-tv.tv_usec)/1000000.0); in time_main()
|
/external/boringssl/src/crypto/ec_extra/ |
D | hash_to_curve.c | 254 EC_FELEM tv1, tv2, tv3, tv4, xd, x1n, x2n, tmp, gxd, gx1, y1, y2; in map_to_curve_simple_swu() local 257 felem_sqr(group, &tv2, &tv3); // tv2 = tv3^2 in map_to_curve_simple_swu() 258 ec_felem_add(group, &xd, &tv2, &tv3); // xd = tv2 + tv3 in map_to_curve_simple_swu() 265 felem_sqr(group, &tv2, &xd); // tv2 = xd^2 in map_to_curve_simple_swu() 266 felem_mul(group, &gxd, &tv2, &xd); // gxd = tv2 * xd = xd^3 in map_to_curve_simple_swu() 267 mul_A(group, &tv2, &tv2); // tv2 = A * tv2 in map_to_curve_simple_swu() 269 ec_felem_add(group, &gx1, &gx1, &tv2); // gx1 = gx1 + tv2 in map_to_curve_simple_swu() 271 felem_mul(group, &tv2, &group->b, &gxd); // tv2 = B * gxd in map_to_curve_simple_swu() 272 ec_felem_add(group, &gx1, &gx1, &tv2); // gx1 = gx1 + tv2 in map_to_curve_simple_swu() 274 felem_mul(group, &tv2, &gx1, &gxd); // tv2 = gx1 * gxd in map_to_curve_simple_swu() [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/ec_extra/ |
D | hash_to_curve.c | 260 EC_FELEM tv1, tv2, tv3, tv4, xd, x1n, x2n, tmp, gxd, gx1, y1, y2; in map_to_curve_simple_swu() local 263 felem_sqr(group, &tv2, &tv3); // tv2 = tv3^2 in map_to_curve_simple_swu() 264 ec_felem_add(group, &xd, &tv2, &tv3); // xd = tv2 + tv3 in map_to_curve_simple_swu() 271 felem_sqr(group, &tv2, &xd); // tv2 = xd^2 in map_to_curve_simple_swu() 272 felem_mul(group, &gxd, &tv2, &xd); // gxd = tv2 * xd = xd^3 in map_to_curve_simple_swu() 273 mul_A(group, &tv2, &tv2); // tv2 = A * tv2 in map_to_curve_simple_swu() 275 ec_felem_add(group, &gx1, &gx1, &tv2); // gx1 = gx1 + tv2 in map_to_curve_simple_swu() 277 felem_mul(group, &tv2, &group->b, &gxd); // tv2 = B * gxd in map_to_curve_simple_swu() 278 ec_felem_add(group, &gx1, &gx1, &tv2); // gx1 = gx1 + tv2 in map_to_curve_simple_swu() 280 felem_mul(group, &tv2, &gx1, &gxd); // tv2 = gx1 * gxd in map_to_curve_simple_swu() [all …]
|
/external/llvm/include/llvm/Support/ |
D | TimeValue.h | 192 friend TimeValue operator + (const TimeValue &tv1, const TimeValue &tv2); 197 friend TimeValue operator - (const TimeValue &tv1, const TimeValue &tv2); 371 inline TimeValue operator + (const TimeValue &tv1, const TimeValue &tv2) { 372 TimeValue sum (tv1.seconds_ + tv2.seconds_, tv1.nanos_ + tv2.nanos_); 377 inline TimeValue operator - (const TimeValue &tv1, const TimeValue &tv2) { 378 TimeValue difference (tv1.seconds_ - tv2.seconds_, tv1.nanos_ - tv2.nanos_ );
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | TimeValue.h | 192 friend TimeValue operator + (const TimeValue &tv1, const TimeValue &tv2); 197 friend TimeValue operator - (const TimeValue &tv1, const TimeValue &tv2); 371 inline TimeValue operator + (const TimeValue &tv1, const TimeValue &tv2) { 372 TimeValue sum (tv1.seconds_ + tv2.seconds_, tv1.nanos_ + tv2.nanos_); 377 inline TimeValue operator - (const TimeValue &tv1, const TimeValue &tv2) { 378 TimeValue difference (tv1.seconds_ - tv2.seconds_, tv1.nanos_ - tv2.nanos_ );
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_clnt_call/ |
D | rpc_clnt_call_scalability.c | 67 struct timeval tv1, tv2; in main() local 105 gettimeofday(&tv2, &tz); in main() 109 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
|
D | rpc_clnt_call_performance.c | 93 struct timeval tv1, tv2; in main() local 131 gettimeofday(&tv2, &tz); in main() 135 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntraw_create/ |
D | rpc_clntraw_create_performance.c | 93 struct timeval tv1, tv2; in main() local 113 gettimeofday(&tv2, &tz); in main() 117 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
|
D | rpc_clntraw_create_complex.c | 49 struct timeval tv1, tv2; in main() local 99 gettimeofday(&tv2, &tz); in main() 101 (tv2.tv_sec - tv1.tv_sec) * 1000000L + in main() 102 (tv2.tv_usec - tv1.tv_usec); in main()
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svctcp_create/ |
D | rpc_svctcp_create_performance.c | 93 struct timeval tv1, tv2; in main() local 115 gettimeofday(&tv2, &tz); in main() 119 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svcudp_create/ |
D | rpc_svcudp_create_performance.c | 93 struct timeval tv1, tv2; in main() local 115 gettimeofday(&tv2, &tz); in main() 119 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svcraw_create/ |
D | rpc_svcraw_create_performance.c | 93 struct timeval tv1, tv2; in main() local 112 gettimeofday(&tv2, &tz); in main() 116 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_callrpc/ |
D | rpc_callrpc_scalability.c | 93 struct timeval tv1, tv2; in main() local 120 gettimeofday(&tv2, &tz); in main() 124 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
|
D | rpc_callrpc_performance.c | 93 struct timeval tv1, tv2; in main() local 120 gettimeofday(&tv2, &tz); in main() 124 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_broadc_clnt_broadcast/ |
D | rpc_clnt_broadcast_scalability.c | 95 struct timeval tv1, tv2; in main() local 123 gettimeofday(&tv2, &tz); in main() 127 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
|
D | rpc_clnt_broadcast_performance.c | 95 struct timeval tv1, tv2; in main() local 123 gettimeofday(&tv2, &tz); in main() 127 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast/ |
D | tirpc_rpc_broadcast_performance.c | 99 struct timeval tv1, tv2; in main() local 125 gettimeofday(&tv2, &tz); in main() 129 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast_exp/ |
D | tirpc_rpc_broadcast_exp_performance.c | 99 struct timeval tv1, tv2; in main() local 126 gettimeofday(&tv2, &tz); in main() 130 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_call/ |
D | tirpc_rpc_call_performance.c | 94 struct timeval tv1, tv2; in main() local 126 gettimeofday(&tv2, &tz); in main() 130 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/ |
D | rpc_clnttcp_create_performance.c | 96 struct timeval tv1, tv2; in main() local 133 gettimeofday(&tv2, &tz); in main() 137 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_call/ |
D | tirpc_toplevel_clnt_call_performance.c | 93 struct timeval tv1, tv2; in main() local 129 gettimeofday(&tv2, &tz); in main() 133 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_create/ |
D | rpc_clntudp_create_performance.c | 95 struct timeval tv1, tv2; in main() local 133 gettimeofday(&tv2, &tz); in main() 137 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
|