Home
last modified time | relevance | path

Searched refs:Log2Ceiling (Results 1 – 22 of 22) sorted by relevance

/external/libchrome/base/
Dbits_unittest.cc36 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 …]
Dbits.h174 inline int Log2Ceiling(uint32_t n) { in Log2Ceiling() function
/external/cronet/base/
Dbits_unittest.cc36 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 …]
Dbits.h123 constexpr int Log2Ceiling(uint32_t n) { in Log2Ceiling() function
/external/cronet/base/allocator/partition_allocator/partition_alloc_base/
Dbits_pa_unittest.cc34 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 …]
Dbits.h138 constexpr int Log2Ceiling(uint32_t n) { in Log2Ceiling() function
/external/tensorflow/tensorflow/core/lib/core/
Dbits.h29 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/
Dspectrogram.cc61 inline int Log2Ceiling(uint32_t n) { in Log2Ceiling() function
70 int exponent = Log2Ceiling(value); in NextPowerOfTwo()
/external/cronet/net/base/
Dmime_sniffer_perftest.cc89 size_t expected_size = plaintext.size() << base::bits::Log2Ceiling( in TEST()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dxla_self_adjoint_eig_op.cc53 int max_iter = 2 * tensorflow::Log2Ceiling(n); in Compile()
Dxla_svd_op.cc69 int max_iter = 2 * tensorflow::Log2Ceiling(std::max(m, n)); in Compile()
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dapprox_topk_shape.cc34 return value == 0 ? 0 : Log2Ceiling(value); in log2_ceil()
/external/tensorflow/tensorflow/core/kernels/
Dsearchsorted_op.cc59 kCostMultiplier * batch_size * Log2Ceiling(num_inputs); in Compute()
88 kCostMultiplier * batch_size * Log2Ceiling(num_inputs); in Compute()
Dunique_op_gpu.cu.h380 /*num_bits=*/Log2Ceiling(input_size)), in ComputeAsync()
Dsparse_split_op_gpu.cu.cc280 /*num_bits=*/Log2Ceiling(num_split)), in operator ()()
/external/tensorflow/tensorflow/compiler/xla/
Darray2d.h77 int shift = Log2Ceiling<uint64_t>(n2());
Dutil.h445 constexpr inline int Log2Ceiling(T x) { in Log2Ceiling() function
/external/cronet/base/allocator/partition_allocator/
Dpartition_bucket_lookup.h211 const size_t n = 1 << base::bits::Log2Ceiling(static_cast<uint32_t>(size)); in RoundUpToPowerOfTwo()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_cost_analysis.cc1014 current_properties_[kFlopsKey] = elements * Log2Ceiling<uint64_t>(elements); in HandleSort()
/external/tensorflow/tensorflow/core/ops/
Dnn_ops.cc1370 return value == 0 ? 0 : Log2Ceiling(value); in log2_ceil()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dir_emitter.cc1584 for (int i = 0, e = 1 + Log2Ceiling(element_count); i < e; i++) { in CreateShardedVectorType()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dir_emitter_unnested.cc2591 int64_t num_stages = Log2Ceiling(dimension_to_sort_bound); in EmitSort()