Home
last modified time | relevance | path

Searched refs:kBits (Results 1 – 17 of 17) sorted by relevance

/external/tensorflow/tensorflow/core/lib/core/
Dbitmap.h66 static const size_t kBits = 32; variable
69 static size_t NumWords(size_t n) { return (n + kBits - 1) / kBits; } in NumWords()
90 return word_[i / kBits] & Mask(i % kBits); in get()
95 word_[i / kBits] |= Mask(i % kBits); in set()
100 word_[i / kBits] &= ~Mask(i % kBits); in clear()
Dbitmap.cc80 size_t mask = (1ull << (start % kBits)) - 1; in FirstUnset()
82 for (size_t i = start / kBits; i < nwords; i++) { in FirstUnset()
88 size_t result = i * kBits + (r - 1); in FirstUnset()
/external/perfetto/src/trace_processor/containers/
Dbit_vector.h234 {Block::kWords - 1, BitWord::kBits - 1}};
244 set_count += Block::kBits;
294 bv.size_ += Block::kBits; in Range()
343 return BlockCeil(n) * Block::kBits + BlockCeil(n) * sizeof(uint32_t); in ApproxBytesCost()
370 static constexpr uint32_t kBits = 64;
374 PERFETTO_DCHECK(idx < kBits); in IsSet()
383 PERFETTO_DCHECK(idx < kBits); in Set()
391 PERFETTO_DCHECK(idx < kBits); in Clear()
403 PERFETTO_DCHECK(n < kBits); in IndexOfNthSet()
442 PERFETTO_DCHECK(idx < kBits); in GetNumBitsSet()
[all …]
Dbit_vector_iterators.h82 uint32_t old_block = old_index / BitVector::Block::kBits; in SetIndex()
83 uint32_t new_block = index / BitVector::Block::kBits; in SetIndex()
108 uint16_t bit_idx_inside_block = index_ % BitVector::Block::kBits; in block_offset()
111 bo.word_idx = bit_idx_inside_block / BitVector::BitWord::kBits; in block_offset()
112 bo.bit_idx = bit_idx_inside_block % BitVector::BitWord::kBits; in block_offset()
Dbit_vector_iterators.cc33 uint32_t block_idx = index_ / BitVector::Block::kBits; in ~BaseIterator()
106 BitVector::Block::kWords - 1, BitVector::BitWord::kBits - 1}; in ReadSetBitBatch()
/external/libtextclassifier/native/utils/math/
Dfastexp.h34 static constexpr int kBits = 7;
35 static constexpr int kMask1 = (1 << kBits) - 1;
36 static constexpr int kMask2 = 0xFF << kBits;
40 int32 exp1[1 << kBits];
46 const float g = f + (127 + (1 << (23 - kBits))); in VeryFastExp2()
48 int32 ret = ((x & kMask2) << (23 - kBits)) in VeryFastExp2()
Dfastexp.cc21 const int FastMathClass::kBits; member in libtextclassifier3::FastMathClass
/external/libtextclassifier/native/lang_id/common/math/
Dfastexp.h36 static constexpr int kBits = 7;
37 static constexpr int kMask1 = (1 << kBits) - 1;
38 static constexpr int kMask2 = 0xFF << kBits;
42 int32 exp1[1 << kBits];
48 const float g = f + (127 + (1 << (23 - kBits))); in VeryFastExp2()
50 int32 ret = ((x & kMask2) << (23 - kBits)) in VeryFastExp2()
Dfastexp.cc22 const int FastMathClass::kBits; member in libtextclassifier3::mobile::FastMathClass
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_reachability.h118 : size_(size), vector_((size + kBits - 1) / kBits, 0) {} in BitVector()
123 return vector_[index / kBits] & (1ull << (index % kBits)); in Get()
129 vector_[index / kBits] |= 1ull << (index % kBits); in Set()
151 static const size_t kBits = 64; variable
/external/skia/modules/skplaintexteditor/src/
Dstringslice.cpp76 static constexpr unsigned kBits = 4; in realloc() local
77 fCapacity = size ? (((size - 1) >> kBits) + 1) << kBits : 0; in realloc()
78 assert(fCapacity % (1u << kBits) == 0); in realloc()
/external/libchrome/base/
Drand_util.cc50 static const int kBits = std::numeric_limits<double>::digits; in BitsToOpenEndedUnitInterval() local
51 uint64_t random_bits = bits & ((UINT64_C(1) << kBits) - 1); in BitsToOpenEndedUnitInterval()
52 double result = ldexp(static_cast<double>(random_bits), -1 * kBits); in BitsToOpenEndedUnitInterval()
/external/skqp/src/gpu/mock/
DGrMockGpu.cpp194 static constexpr int kBits = 8; in createStencilAttachmentForRenderTarget() local
196 return new GrMockStencilAttachment(this, width, height, kBits, rt->numColorSamples()); in createStencilAttachmentForRenderTarget()
/external/skia/src/gpu/mock/
DGrMockGpu.cpp280 static constexpr int kBits = 8; in createStencilAttachmentForRenderTarget() local
282 return new GrMockStencilAttachment(this, width, height, kBits, rt->numSamples()); in createStencilAttachmentForRenderTarget()
/external/boringssl/src/crypto/fipsmodule/ecdsa/
Decdsa_test.cc285 static const size_t kBits[] = {224, 256, 384, 521, 10000}; in TEST() local
286 for (size_t bits : kBits) { in TEST()
/external/v8/src/regexp/
Dregexp-compiler.cc1149 static const int kBits = RegExpMacroAssembler::kTableSizeBits; in GenerateBranches() local
1151 if ((max_char >> kBits) == (min_char >> kBits)) { in GenerateBranches()
1157 if ((min_char >> kBits) != static_cast<uc32>(first >> kBits)) { in GenerateBranches()
/external/boringssl/src/crypto/fipsmodule/bn/
Dbn_test.cc1590 static const unsigned kBits = 10; in TEST_F() local
1594 ASSERT_TRUE(BN_generate_prime_ex(r.get(), static_cast<int>(kBits), 0, NULL, in TEST_F()
1596 EXPECT_EQ(kBits, BN_num_bits(r.get())); in TEST_F()