/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/ |
D | abseil-duration-unnecessary-conversion.cpp | 67 d2 = absl::Hours(absl::FDivDuration(d1, absl::Hours(1))); in f() 70 d2 = absl::Minutes(absl::FDivDuration(d1, absl::Minutes(1))); in f() 73 d2 = absl::Seconds(absl::FDivDuration(d1, absl::Seconds(1))); in f() 76 d2 = absl::Milliseconds(absl::FDivDuration(d1, absl::Milliseconds(1))); in f() 79 d2 = absl::Microseconds(absl::FDivDuration(d1, absl::Microseconds(1))); in f() 82 d2 = absl::Nanoseconds(absl::FDivDuration(d1, absl::Nanoseconds(1))); in f() 147 d2 = absl::Hours(absl::FDivDuration(d1, absl::Minutes(1))); in f() 148 d2 = absl::Milliseconds(absl::FDivDuration(d1, absl::Milliseconds(20))); in f()
|
D | abseil-duration-division.cpp | 9 double FDivDuration(Duration num, Duration den);
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/ |
D | duration.cc | 484 double FDivDuration(Duration num, Duration den) { in FDivDuration() function 588 return FDivDuration(d, Nanoseconds(1)); in ToDoubleNanoseconds() 591 return FDivDuration(d, Microseconds(1)); in ToDoubleMicroseconds() 594 return FDivDuration(d, Milliseconds(1)); in ToDoubleMilliseconds() 597 return FDivDuration(d, Seconds(1)); in ToDoubleSeconds() 600 return FDivDuration(d, Minutes(1)); in ToDoubleMinutes() 603 return FDivDuration(d, Hours(1)); in ToDoubleHours() 785 AppendNumberUnit(&s, FDivDuration(d, Nanoseconds(1)), kDisplayNano); in FormatDuration() 787 AppendNumberUnit(&s, FDivDuration(d, Microseconds(1)), kDisplayMicro); in FormatDuration() 789 AppendNumberUnit(&s, FDivDuration(d, Milliseconds(1)), kDisplayMilli); in FormatDuration() [all …]
|
D | duration_test.cc | 364 EXPECT_EQ(1.5, absl::FDivDuration(NAME(static_cast<float>(1.5)), NAME(1))); \ in TEST() 365 EXPECT_EQ(1.5, absl::FDivDuration(NAME(static_cast<double>(1.5)), NAME(1))); in TEST() 743 EXPECT_EQ(dbl_inf, absl::FDivDuration(inf, inf)); in TEST() 744 EXPECT_EQ(dbl_inf, absl::FDivDuration(-inf, -inf)); in TEST() 745 EXPECT_EQ(dbl_inf, absl::FDivDuration(inf, any_dur)); in TEST() 746 EXPECT_EQ(0.0, absl::FDivDuration(any_dur, inf)); in TEST() 747 EXPECT_EQ(dbl_inf, absl::FDivDuration(-inf, -any_dur)); in TEST() 748 EXPECT_EQ(0.0, absl::FDivDuration(-any_dur, -inf)); in TEST() 750 EXPECT_EQ(-dbl_inf, absl::FDivDuration(-inf, inf)); in TEST() 751 EXPECT_EQ(-dbl_inf, absl::FDivDuration(inf, -inf)); in TEST() [all …]
|
D | duration_benchmark.cc | 207 d += absl::FDivDuration(absl::Milliseconds(i), absl::Nanoseconds(1))); in BM_Duration_FDivDuration_Nanoseconds()
|
/external/libtextclassifier/abseil-cpp/absl/time/ |
D | duration.cc | 484 double FDivDuration(Duration num, Duration den) { in FDivDuration() function 588 return FDivDuration(d, Nanoseconds(1)); in ToDoubleNanoseconds() 591 return FDivDuration(d, Microseconds(1)); in ToDoubleMicroseconds() 594 return FDivDuration(d, Milliseconds(1)); in ToDoubleMilliseconds() 597 return FDivDuration(d, Seconds(1)); in ToDoubleSeconds() 600 return FDivDuration(d, Minutes(1)); in ToDoubleMinutes() 603 return FDivDuration(d, Hours(1)); in ToDoubleHours() 785 AppendNumberUnit(&s, FDivDuration(d, Nanoseconds(1)), kDisplayNano); in FormatDuration() 787 AppendNumberUnit(&s, FDivDuration(d, Microseconds(1)), kDisplayMicro); in FormatDuration() 789 AppendNumberUnit(&s, FDivDuration(d, Milliseconds(1)), kDisplayMilli); in FormatDuration() [all …]
|
D | duration_test.cc | 364 EXPECT_EQ(1.5, absl::FDivDuration(NAME(static_cast<float>(1.5)), NAME(1))); \ in TEST() 365 EXPECT_EQ(1.5, absl::FDivDuration(NAME(static_cast<double>(1.5)), NAME(1))); in TEST() 743 EXPECT_EQ(dbl_inf, absl::FDivDuration(inf, inf)); in TEST() 744 EXPECT_EQ(dbl_inf, absl::FDivDuration(-inf, -inf)); in TEST() 745 EXPECT_EQ(dbl_inf, absl::FDivDuration(inf, any_dur)); in TEST() 746 EXPECT_EQ(0.0, absl::FDivDuration(any_dur, inf)); in TEST() 747 EXPECT_EQ(dbl_inf, absl::FDivDuration(-inf, -any_dur)); in TEST() 748 EXPECT_EQ(0.0, absl::FDivDuration(-any_dur, -inf)); in TEST() 750 EXPECT_EQ(-dbl_inf, absl::FDivDuration(-inf, inf)); in TEST() 751 EXPECT_EQ(-dbl_inf, absl::FDivDuration(inf, -inf)); in TEST() [all …]
|
D | duration_benchmark.cc | 207 d += absl::FDivDuration(absl::Milliseconds(i), absl::Nanoseconds(1))); in BM_Duration_FDivDuration_Nanoseconds()
|
/external/angle/third_party/abseil-cpp/absl/time/ |
D | duration.cc | 484 double FDivDuration(Duration num, Duration den) { in FDivDuration() function 588 return FDivDuration(d, Nanoseconds(1)); in ToDoubleNanoseconds() 591 return FDivDuration(d, Microseconds(1)); in ToDoubleMicroseconds() 594 return FDivDuration(d, Milliseconds(1)); in ToDoubleMilliseconds() 597 return FDivDuration(d, Seconds(1)); in ToDoubleSeconds() 600 return FDivDuration(d, Minutes(1)); in ToDoubleMinutes() 603 return FDivDuration(d, Hours(1)); in ToDoubleHours() 786 AppendNumberUnit(&s, FDivDuration(d, Nanoseconds(1)), kDisplayNano); in FormatDuration() 788 AppendNumberUnit(&s, FDivDuration(d, Microseconds(1)), kDisplayMicro); in FormatDuration() 790 AppendNumberUnit(&s, FDivDuration(d, Milliseconds(1)), kDisplayMilli); in FormatDuration() [all …]
|
D | duration_test.cc | 365 EXPECT_EQ(1.5, absl::FDivDuration(NAME(static_cast<float>(1.5)), NAME(1))); \ in TEST() 366 EXPECT_EQ(1.5, absl::FDivDuration(NAME(static_cast<double>(1.5)), NAME(1))); in TEST() 744 EXPECT_EQ(dbl_inf, absl::FDivDuration(inf, inf)); in TEST() 745 EXPECT_EQ(dbl_inf, absl::FDivDuration(-inf, -inf)); in TEST() 746 EXPECT_EQ(dbl_inf, absl::FDivDuration(inf, any_dur)); in TEST() 747 EXPECT_EQ(0.0, absl::FDivDuration(any_dur, inf)); in TEST() 748 EXPECT_EQ(dbl_inf, absl::FDivDuration(-inf, -any_dur)); in TEST() 749 EXPECT_EQ(0.0, absl::FDivDuration(-any_dur, -inf)); in TEST() 751 EXPECT_EQ(-dbl_inf, absl::FDivDuration(-inf, inf)); in TEST() 752 EXPECT_EQ(-dbl_inf, absl::FDivDuration(inf, -inf)); in TEST() [all …]
|
D | duration_benchmark.cc | 212 d += absl::FDivDuration(absl::Milliseconds(i), absl::Nanoseconds(1))); in BM_Duration_FDivDuration_Nanoseconds()
|
D | time.cc | 280 return absl::FDivDuration(time_internal::ToUnixDuration(t), in ToUDate()
|
/external/webrtc/third_party/abseil-cpp/absl/time/ |
D | duration.cc | 481 double FDivDuration(Duration num, Duration den) { in FDivDuration() function 585 return FDivDuration(d, Nanoseconds(1)); in ToDoubleNanoseconds() 588 return FDivDuration(d, Microseconds(1)); in ToDoubleMicroseconds() 591 return FDivDuration(d, Milliseconds(1)); in ToDoubleMilliseconds() 594 return FDivDuration(d, Seconds(1)); in ToDoubleSeconds() 597 return FDivDuration(d, Minutes(1)); in ToDoubleMinutes() 600 return FDivDuration(d, Hours(1)); in ToDoubleHours() 781 AppendNumberUnit(&s, FDivDuration(d, Nanoseconds(1)), kDisplayNano); in FormatDuration() 783 AppendNumberUnit(&s, FDivDuration(d, Microseconds(1)), kDisplayMicro); in FormatDuration() 785 AppendNumberUnit(&s, FDivDuration(d, Milliseconds(1)), kDisplayMilli); in FormatDuration() [all …]
|
D | duration_test.cc | 364 EXPECT_EQ(1.5, absl::FDivDuration(NAME(static_cast<float>(1.5)), NAME(1))); \ in TEST() 365 EXPECT_EQ(1.5, absl::FDivDuration(NAME(static_cast<double>(1.5)), NAME(1))); in TEST() 743 EXPECT_EQ(dbl_inf, absl::FDivDuration(inf, inf)); in TEST() 744 EXPECT_EQ(dbl_inf, absl::FDivDuration(-inf, -inf)); in TEST() 745 EXPECT_EQ(dbl_inf, absl::FDivDuration(inf, any_dur)); in TEST() 746 EXPECT_EQ(0.0, absl::FDivDuration(any_dur, inf)); in TEST() 747 EXPECT_EQ(dbl_inf, absl::FDivDuration(-inf, -any_dur)); in TEST() 748 EXPECT_EQ(0.0, absl::FDivDuration(-any_dur, -inf)); in TEST() 750 EXPECT_EQ(-dbl_inf, absl::FDivDuration(-inf, inf)); in TEST() 751 EXPECT_EQ(-dbl_inf, absl::FDivDuration(inf, -inf)); in TEST() [all …]
|
D | duration_benchmark.cc | 207 d += absl::FDivDuration(absl::Milliseconds(i), absl::Nanoseconds(1))); in BM_Duration_FDivDuration_Nanoseconds()
|
/external/abseil-cpp/absl/time/ |
D | duration.cc | 481 double FDivDuration(Duration num, Duration den) { in FDivDuration() function 585 return FDivDuration(d, Nanoseconds(1)); in ToDoubleNanoseconds() 588 return FDivDuration(d, Microseconds(1)); in ToDoubleMicroseconds() 591 return FDivDuration(d, Milliseconds(1)); in ToDoubleMilliseconds() 594 return FDivDuration(d, Seconds(1)); in ToDoubleSeconds() 597 return FDivDuration(d, Minutes(1)); in ToDoubleMinutes() 600 return FDivDuration(d, Hours(1)); in ToDoubleHours() 781 AppendNumberUnit(&s, FDivDuration(d, Nanoseconds(1)), kDisplayNano); in FormatDuration() 783 AppendNumberUnit(&s, FDivDuration(d, Microseconds(1)), kDisplayMicro); in FormatDuration() 785 AppendNumberUnit(&s, FDivDuration(d, Milliseconds(1)), kDisplayMilli); in FormatDuration() [all …]
|
D | duration_test.cc | 364 EXPECT_EQ(1.5, absl::FDivDuration(NAME(static_cast<float>(1.5)), NAME(1))); \ in TEST() 365 EXPECT_EQ(1.5, absl::FDivDuration(NAME(static_cast<double>(1.5)), NAME(1))); in TEST() 743 EXPECT_EQ(dbl_inf, absl::FDivDuration(inf, inf)); in TEST() 744 EXPECT_EQ(dbl_inf, absl::FDivDuration(-inf, -inf)); in TEST() 745 EXPECT_EQ(dbl_inf, absl::FDivDuration(inf, any_dur)); in TEST() 746 EXPECT_EQ(0.0, absl::FDivDuration(any_dur, inf)); in TEST() 747 EXPECT_EQ(dbl_inf, absl::FDivDuration(-inf, -any_dur)); in TEST() 748 EXPECT_EQ(0.0, absl::FDivDuration(-any_dur, -inf)); in TEST() 750 EXPECT_EQ(-dbl_inf, absl::FDivDuration(-inf, inf)); in TEST() 751 EXPECT_EQ(-dbl_inf, absl::FDivDuration(inf, -inf)); in TEST() [all …]
|
D | duration_benchmark.cc | 207 d += absl::FDivDuration(absl::Milliseconds(i), absl::Nanoseconds(1))); in BM_Duration_FDivDuration_Nanoseconds()
|
D | time.cc | 279 return absl::FDivDuration(time_internal::ToUnixDuration(t), in ToUDate()
|
/external/openscreen/third_party/abseil/src/absl/time/ |
D | duration.cc | 484 double FDivDuration(Duration num, Duration den) { in FDivDuration() function 588 return FDivDuration(d, Nanoseconds(1)); in ToDoubleNanoseconds() 591 return FDivDuration(d, Microseconds(1)); in ToDoubleMicroseconds() 594 return FDivDuration(d, Milliseconds(1)); in ToDoubleMilliseconds() 597 return FDivDuration(d, Seconds(1)); in ToDoubleSeconds() 600 return FDivDuration(d, Minutes(1)); in ToDoubleMinutes() 603 return FDivDuration(d, Hours(1)); in ToDoubleHours() 786 AppendNumberUnit(&s, FDivDuration(d, Nanoseconds(1)), kDisplayNano); in FormatDuration() 788 AppendNumberUnit(&s, FDivDuration(d, Microseconds(1)), kDisplayMicro); in FormatDuration() 790 AppendNumberUnit(&s, FDivDuration(d, Milliseconds(1)), kDisplayMilli); in FormatDuration() [all …]
|
D | duration_test.cc | 364 EXPECT_EQ(1.5, absl::FDivDuration(NAME(static_cast<float>(1.5)), NAME(1))); \ in TEST() 365 EXPECT_EQ(1.5, absl::FDivDuration(NAME(static_cast<double>(1.5)), NAME(1))); in TEST() 743 EXPECT_EQ(dbl_inf, absl::FDivDuration(inf, inf)); in TEST() 744 EXPECT_EQ(dbl_inf, absl::FDivDuration(-inf, -inf)); in TEST() 745 EXPECT_EQ(dbl_inf, absl::FDivDuration(inf, any_dur)); in TEST() 746 EXPECT_EQ(0.0, absl::FDivDuration(any_dur, inf)); in TEST() 747 EXPECT_EQ(dbl_inf, absl::FDivDuration(-inf, -any_dur)); in TEST() 748 EXPECT_EQ(0.0, absl::FDivDuration(-any_dur, -inf)); in TEST() 750 EXPECT_EQ(-dbl_inf, absl::FDivDuration(-inf, inf)); in TEST() 751 EXPECT_EQ(-dbl_inf, absl::FDivDuration(inf, -inf)); in TEST() [all …]
|
D | duration_benchmark.cc | 207 d += absl::FDivDuration(absl::Milliseconds(i), absl::Nanoseconds(1))); in BM_Duration_FDivDuration_Nanoseconds()
|
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/ |
D | abseil-duration-division.rst | 23 ``absl::FDivDuration()`` function, or one of the unit conversion functions such 29 double dsec1 = absl::FDivDuration(d, absl::Seconds(1)); // GOOD: No truncation.
|
D | abseil-duration-unnecessary-conversion.rst | 21 absl::Duration d2 = absl::Seconds(absl::FDivDuration(d1, absl::Seconds(1)));
|
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/Inputs/absl/time/ |
D | time.h | 90 double FDivDuration(Duration num, Duration den);
|