OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:RoundUpToPowerOfTwo
(Results
1 - 7
of
7
) sorted by null
/external/chromium_org/media/base/
audio_hardware_config.cc
21
static uint32_t
RoundUpToPowerOfTwo
(uint32_t v) {
126
const int high_latency_buffer_size =
RoundUpToPowerOfTwo
(twenty_ms_size);
/art/runtime/
utils_test.cc
405
TEST_F(UtilsTest,
RoundUpToPowerOfTwo
) {
407
EXPECT_EQ(0,
RoundUpToPowerOfTwo
(0));
408
EXPECT_EQ(1,
RoundUpToPowerOfTwo
(1));
409
EXPECT_EQ(2,
RoundUpToPowerOfTwo
(2));
410
EXPECT_EQ(4,
RoundUpToPowerOfTwo
(3));
411
EXPECT_EQ(8,
RoundUpToPowerOfTwo
(7));
413
EXPECT_EQ(0b10000L,
RoundUpToPowerOfTwo
(0b01101L));
414
EXPECT_EQ(1ULL << 63,
RoundUpToPowerOfTwo
(1ULL << 62 | 1ULL));
utils.h
230
static constexpr inline T
RoundUpToPowerOfTwo
(T x) {
236
static inline uint32_t
RoundUpToPowerOfTwo
(uint32_t x) {
/external/llvm/include/llvm/ADT/
SmallPtrSet.h
209
///
RoundUpToPowerOfTwo
- This is a helper template that rounds N up to the next
212
struct
RoundUpToPowerOfTwo
;
215
/// helper template used to implement
RoundUpToPowerOfTwo
.
225
Val =
RoundUpToPowerOfTwo
<(N|(N-1)) + 1>::Val
230
struct
RoundUpToPowerOfTwo
{
296
enum { SmallSizePowTwo =
RoundUpToPowerOfTwo
<SmallSize>::Val };
/external/compiler-rt/lib/sanitizer_common/
sanitizer_tls_get_addr.cc
55
new_size =
RoundUpToPowerOfTwo
(new_size);
sanitizer_common.h
296
INLINE uptr
RoundUpToPowerOfTwo
(uptr size) {
381
uptr new_capacity =
RoundUpToPowerOfTwo
(size_ + 1);
/external/compiler-rt/lib/asan/
asan_thread.cc
130
uptr stack_size_log = Log2(
RoundUpToPowerOfTwo
(stack_size));
Completed in 265 milliseconds