merge(3p/absl): subtree merge of Abseil up to e19260f
... notably, this includes Abseil's own StatusOr type, which conflicted with our implementation (that was taken from TensorFlow). Change-Id: Ie7d6764b64055caaeb8dc7b6b9d066291e6b538f
This commit is contained in:
parent
cc27324d02
commit
082c006c04
854 changed files with 11260 additions and 5296 deletions
7
third_party/abseil_cpp/absl/time/time.cc
vendored
7
third_party/abseil_cpp/absl/time/time.cc
vendored
|
|
@ -60,9 +60,10 @@ inline cctz::time_point<cctz::seconds> unix_epoch() {
|
|||
inline int64_t FloorToUnit(absl::Duration d, absl::Duration unit) {
|
||||
absl::Duration rem;
|
||||
int64_t q = absl::IDivDuration(d, unit, &rem);
|
||||
return (q > 0 ||
|
||||
rem >= ZeroDuration() ||
|
||||
q == std::numeric_limits<int64_t>::min()) ? q : q - 1;
|
||||
return (q > 0 || rem >= ZeroDuration() ||
|
||||
q == std::numeric_limits<int64_t>::min())
|
||||
? q
|
||||
: q - 1;
|
||||
}
|
||||
|
||||
inline absl::Time::Breakdown InfiniteFutureBreakdown() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue