vendor/bela/src/belatime/time.cc
inline int64_t FloorToUnit(bela::Duration d, bela::Duration unit) {
  bela::Duration rem;
  int64_t q = bela::IDivDuration(d, unit, &rem);
  return (q > 0 || rem >= ZeroDuration() || q == (std::numeric_limits<int64_t>::min)()) ? q : q - 1;
}
// Floors d to the next unit boundary closer to negative infinity.
Floors d to the next unit boundary closer to negative infinity.
Floors d to the next unit boundary closer to negative infinity .
inline int64_t FloorToUnit(bela::Duration d, bela::Duration unit) {
  bela::Duration rem;
  int64_t q = bela::IDivDuration(d, unit, &rem);
  return (q > 0 || rem >= ZeroDuration() || q == (std::numeric_limits<int64_t>::min)()) ? q : q - 1;
}
inline int64_t FloorToUnit ( bela :: Duration d , bela :: Duration unit ) { bela :: Duration rem ; int64_t q = bela :: IDivDuration ( d , unit , & rem ) ; return ( q > 0 || rem >= ZeroDuration ( ) || q == ( std :: numeric_limits < int64_t > :: min ) ( ) ) ? q : q - 1 ; }
Floors d to the next unit boundary closer to negative infinity.
Floors d to the next unit boundary closer to negative infinity .