/external/libchrome/base/ |
D | bits_unittest.cc | 36 TEST(BitsTest, Log2Ceiling) { in TEST() argument 37 EXPECT_EQ(-1, Log2Ceiling(0)); in TEST() 38 EXPECT_EQ(0, Log2Ceiling(1)); in TEST() 39 EXPECT_EQ(1, Log2Ceiling(2)); in TEST() 40 EXPECT_EQ(2, Log2Ceiling(3)); in TEST() 41 EXPECT_EQ(2, Log2Ceiling(4)); in TEST() 44 EXPECT_EQ(i, Log2Ceiling(value)); in TEST() 45 EXPECT_EQ(i + 1, Log2Ceiling(value + 1)); in TEST() 46 EXPECT_EQ(i + 1, Log2Ceiling(value + 2)); in TEST() 47 EXPECT_EQ(i, Log2Ceiling(value - 1)); in TEST() [all …]
|
D | bits.h | 174 inline int Log2Ceiling(uint32_t n) { in Log2Ceiling() function
|
/external/cronet/base/ |
D | bits_unittest.cc | 36 TEST(BitsTest, Log2Ceiling) { in TEST() argument 37 EXPECT_EQ(-1, Log2Ceiling(0)); in TEST() 38 EXPECT_EQ(0, Log2Ceiling(1)); in TEST() 39 EXPECT_EQ(1, Log2Ceiling(2)); in TEST() 40 EXPECT_EQ(2, Log2Ceiling(3)); in TEST() 41 EXPECT_EQ(2, Log2Ceiling(4)); in TEST() 44 EXPECT_EQ(i, Log2Ceiling(value)); in TEST() 45 EXPECT_EQ(i + 1, Log2Ceiling(value + 1)); in TEST() 46 EXPECT_EQ(i + 1, Log2Ceiling(value + 2)); in TEST() 47 EXPECT_EQ(i, Log2Ceiling(value - 1)); in TEST() [all …]
|
D | bits.h | 123 constexpr int Log2Ceiling(uint32_t n) { in Log2Ceiling() function
|
/external/cronet/base/allocator/partition_allocator/partition_alloc_base/ |
D | bits_pa_unittest.cc | 34 TEST(BitsTest, Log2Ceiling) { in TEST() argument 35 EXPECT_EQ(-1, Log2Ceiling(0)); in TEST() 36 EXPECT_EQ(0, Log2Ceiling(1)); in TEST() 37 EXPECT_EQ(1, Log2Ceiling(2)); in TEST() 38 EXPECT_EQ(2, Log2Ceiling(3)); in TEST() 39 EXPECT_EQ(2, Log2Ceiling(4)); in TEST() 42 EXPECT_EQ(i, Log2Ceiling(value)); in TEST() 43 EXPECT_EQ(i + 1, Log2Ceiling(value + 1)); in TEST() 44 EXPECT_EQ(i + 1, Log2Ceiling(value + 2)); in TEST() 45 EXPECT_EQ(i, Log2Ceiling(value - 1)); in TEST() [all …]
|
D | bits.h | 138 constexpr int Log2Ceiling(uint32_t n) { in Log2Ceiling() function
|
/external/tensorflow/tensorflow/core/lib/core/ |
D | bits.h | 29 int Log2Ceiling(uint32 n); 79 inline int Log2Ceiling(uint32 n) { in Log2Ceiling() function 96 int exponent = Log2Ceiling(value); in NextPowerOfTwo() 102 int exponent = Log2Ceiling(value); in NextPowerOfTwo64()
|
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | spectrogram.cc | 61 inline int Log2Ceiling(uint32_t n) { in Log2Ceiling() function 70 int exponent = Log2Ceiling(value); in NextPowerOfTwo()
|
/external/cronet/net/base/ |
D | mime_sniffer_perftest.cc | 89 size_t expected_size = plaintext.size() << base::bits::Log2Ceiling( in TEST()
|
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
D | xla_self_adjoint_eig_op.cc | 53 int max_iter = 2 * tensorflow::Log2Ceiling(n); in Compile()
|
D | xla_svd_op.cc | 69 int max_iter = 2 * tensorflow::Log2Ceiling(std::max(m, n)); in Compile()
|
/external/tensorflow/tensorflow/compiler/xla/client/lib/ |
D | approx_topk_shape.cc | 34 return value == 0 ? 0 : Log2Ceiling(value); in log2_ceil()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | searchsorted_op.cc | 59 kCostMultiplier * batch_size * Log2Ceiling(num_inputs); in Compute() 88 kCostMultiplier * batch_size * Log2Ceiling(num_inputs); in Compute()
|
D | unique_op_gpu.cu.h | 380 /*num_bits=*/Log2Ceiling(input_size)), in ComputeAsync()
|
D | sparse_split_op_gpu.cu.cc | 280 /*num_bits=*/Log2Ceiling(num_split)), in operator ()()
|
/external/tensorflow/tensorflow/compiler/xla/ |
D | array2d.h | 77 int shift = Log2Ceiling<uint64_t>(n2());
|
D | util.h | 445 constexpr inline int Log2Ceiling(T x) { in Log2Ceiling() function
|
/external/cronet/base/allocator/partition_allocator/ |
D | partition_bucket_lookup.h | 211 const size_t n = 1 << base::bits::Log2Ceiling(static_cast<uint32_t>(size)); in RoundUpToPowerOfTwo()
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | hlo_cost_analysis.cc | 1014 current_properties_[kFlopsKey] = elements * Log2Ceiling<uint64_t>(elements); in HandleSort()
|
/external/tensorflow/tensorflow/core/ops/ |
D | nn_ops.cc | 1370 return value == 0 ? 0 : Log2Ceiling(value); in log2_ceil()
|
/external/tensorflow/tensorflow/compiler/xla/service/cpu/ |
D | ir_emitter.cc | 1584 for (int i = 0, e = 1 + Log2Ceiling(element_count); i < e; i++) { in CreateShardedVectorType()
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
D | ir_emitter_unnested.cc | 2591 int64_t num_stages = Log2Ceiling(dimension_to_sort_bound); in EmitSort()
|