Home
last modified time | relevance | path

Searched refs:kMinPeriod (Results 1 – 3 of 3) sorted by relevance

/external/ruy/ruy/
Dallocator.cc76 static constexpr std::uint32_t kMinPeriod = 1024; in AllocateBytesAvoidingAliasingWith() local
77 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()
Dallocator_test.cc109 static constexpr int kMinPeriod = 1024; in TEST() local
111 (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()
/external/webrtc/modules/remote_bitrate_estimator/
Daimd_rate_control.cc244 const TimeDelta kMinPeriod = TimeDelta::Seconds(2); in GetExpectedBandwidthPeriod() local
254 return period.Clamped(kMinPeriod, kMaxPeriod); in GetExpectedBandwidthPeriod()