Searched refs:kMinPeriod (Results 1 – 3 of 3) sorted by relevance
76 static constexpr std::uint32_t kMinPeriod = 1024; in AllocateBytesAvoidingAliasingWith() local77 static_assert(is_pot(kMinPeriod), ""); in AllocateBytesAvoidingAliasingWith()78 void* p = AllocateBytes(num_bytes + kMinPeriod); in AllocateBytesAvoidingAliasingWith()84 (unsigned_low_bits(p) - unsigned_low_bits(to_avoid)) % kMinPeriod; in AllocateBytesAvoidingAliasingWith()92 diff_modulus < kMinPeriod / 4 || diff_modulus > 3 * kMinPeriod / 4; in AllocateBytesAvoidingAliasingWith()93 return static_cast<char*>(p) + (need_offset ? (kMinPeriod / 2) : 0); in AllocateBytesAvoidingAliasingWith()
109 static constexpr int kMinPeriod = 1024; in TEST() local111 (unsigned_low_bits(ptr) - unsigned_low_bits(to_avoid)) % kMinPeriod; in TEST()112 std::uint32_t unsigned_diff_mod = unsigned_diff % kMinPeriod; in TEST()113 ASSERT_TRUE(unsigned_diff_mod >= (kMinPeriod / 4) && in TEST()114 unsigned_diff_mod <= 3 * (kMinPeriod / 4)); in TEST()
246 const TimeDelta kMinPeriod = TimeDelta::Seconds(2); in GetExpectedBandwidthPeriod() local256 return period.Clamped(kMinPeriod, kMaxPeriod); in GetExpectedBandwidthPeriod()