/external/tensorflow/tensorflow/core/lib/core/ |
D | bitmap.h | 66 static constexpr 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()
|
D | bitmap.cc | 80 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/ |
D | bit_vector.h | 234 {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() 440 PERFETTO_DCHECK(idx < kBits); in GetNumBitsSet() [all …]
|
D | bit_vector_iterators.h | 82 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()
|
D | bit_vector_iterators.cc | 33 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/ |
D | fastexp.h | 34 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()
|
D | fastexp.cc | 21 const int FastMathClass::kBits; member in libtextclassifier3::FastMathClass
|
/external/libtextclassifier/native/lang_id/common/math/ |
D | fastexp.h | 36 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()
|
D | fastexp.cc | 22 const int FastMathClass::kBits; member in libtextclassifier3::mobile::FastMathClass
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | hlo_reachability.h | 159 : size_(size), vector_((size + kBits - 1) / kBits, 0) {} in BitVector() 164 return vector_[index / kBits] & (1ull << (index % kBits)); in Get() 170 vector_[index / kBits] |= 1ull << (index % kBits); in Set() 192 static constexpr size_t kBits = 64; variable
|
/external/skia/modules/skplaintexteditor/src/ |
D | stringslice.cpp | 76 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/ |
D | rand_util.cc | 50 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/angle/src/libANGLE/ |
D | angletypes.h | 460 static constexpr size_t kBits = 8; member 462 static constexpr size_t kBits = ElementCount > 16 ? 8 : 4; member 465 using Type = typename std::conditional<kBits == 8, uint64_t, uint32_t>::type; 467 static constexpr Type kMaxValueMask = (kBits == 8) ? 0xFF : 0xF; 473 return static_cast<Type>(0xFFFFFFFFFFFFFFFFull >> (64 - drawBuffers * kBits)); in GetMask() 477 static constexpr Type kReplicator = (kBits == 8) ? 0x0101010101010101ull : 0x11111111; 485 return static_cast<ElementType>((values >> (index * kBits)) & kMaxValueMask); in GetValueIndexed() 504 const Type selector = kMaxValueMask << (index * kBits); in SetValueIndexed() 507 const Type builtValue = static_cast<Type>(value) << (index * kBits); in SetValueIndexed()
|
/external/skqp/src/gpu/mock/ |
D | GrMockGpu.cpp | 194 static constexpr int kBits = 8; in createStencilAttachmentForRenderTarget() local 196 return new GrMockStencilAttachment(this, width, height, kBits, rt->numColorSamples()); in createStencilAttachmentForRenderTarget()
|
/external/rust/crates/libfuzzer-sys/libfuzzer/ |
D | FuzzerTracePC.cpp | 113 const uintptr_t kBits = 12; in HandleCallerCallee() local 114 const uintptr_t kMask = (1 << kBits) - 1; in HandleCallerCallee() 115 uintptr_t Idx = (Caller & kMask) | ((Callee & kMask) << kBits); in HandleCallerCallee()
|
/external/llvm-project/compiler-rt/lib/fuzzer/ |
D | FuzzerTracePC.cpp | 113 const uintptr_t kBits = 12; in HandleCallerCallee() local 114 const uintptr_t kMask = (1 << kBits) - 1; in HandleCallerCallee() 115 uintptr_t Idx = (Caller & kMask) | ((Callee & kMask) << kBits); in HandleCallerCallee()
|
/external/boringssl/src/crypto/fipsmodule/ecdsa/ |
D | ecdsa_test.cc | 285 static const size_t kBits[] = {224, 256, 384, 521, 10000}; in TEST() local 286 for (size_t bits : kBits) { in TEST()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/ecdsa/ |
D | ecdsa_test.cc | 285 static const size_t kBits[] = {224, 256, 384, 521, 10000}; in TEST() local 286 for (size_t bits : kBits) { in TEST()
|
/external/openscreen/tools/cddl/ |
D | sema.h | 40 kBits, // .bits enumerator
|
D | sema.cc | 227 return CddlType::Op::kBits; in AnalyzeCtlop()
|
/external/boringssl/src/crypto/fipsmodule/bn/ |
D | bn_test.cc | 1608 static const unsigned kBits = 10; in TEST_F() local 1612 ASSERT_TRUE(BN_generate_prime_ex(r.get(), static_cast<int>(kBits), 0, NULL, in TEST_F() 1614 EXPECT_EQ(kBits, BN_num_bits(r.get())); in TEST_F()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/bn/ |
D | bn_test.cc | 1608 static const unsigned kBits = 10; in TEST_F() local 1612 ASSERT_TRUE(BN_generate_prime_ex(r.get(), static_cast<int>(kBits), 0, NULL, in TEST_F() 1614 EXPECT_EQ(kBits, BN_num_bits(r.get())); in TEST_F()
|
/external/deqp/external/vulkancts/modules/vulkan/api/ |
D | vktApiCopiesAndBlittingTests.cpp | 3273 static const MirrorModeBits kBits[] = { MIRROR_MODE_X, MIRROR_MODE_Y, MIRROR_MODE_Z }; in getMirrorMode() local 3280 for (int i = 0; i < DE_LENGTH_OF_ARRAY(kBits); ++i) in getMirrorMode() 3282 const MirrorModeBits bit = kBits[i]; in getMirrorMode()
|