Home
last modified time | relevance | path

Searched refs:MARISA_WORD_SIZE (Results 1 – 8 of 8) sorted by relevance

/external/marisa-trie/lib/marisa/grimoire/vector/
Dflat-vector.h12 #if MARISA_WORD_SIZE == 64
44 const std::size_t unit_id = pos / MARISA_WORD_SIZE;
45 const std::size_t unit_offset = pos % MARISA_WORD_SIZE;
47 if ((unit_offset + value_size_) <= MARISA_WORD_SIZE) {
51 | (units_[unit_id + 1] << (MARISA_WORD_SIZE - unit_offset))) & mask_;
105 std::size_t num_units = values.empty() ? 0 : (64 / MARISA_WORD_SIZE); in build_()
108 (((UInt64)value_size * values.size()) + (MARISA_WORD_SIZE - 1)) in build_()
109 / MARISA_WORD_SIZE); in build_()
110 num_units += num_units % (64 / MARISA_WORD_SIZE); in build_()
183 const std::size_t unit_id = pos / MARISA_WORD_SIZE; in set()
[all …]
Dbit-vector.h13 #if MARISA_WORD_SIZE == 64
53 if (size_ == (MARISA_WORD_SIZE * units_.size())) { in push_back()
54 units_.resize(units_.size() + (64 / MARISA_WORD_SIZE), 0); in push_back()
57 units_[size_ / MARISA_WORD_SIZE] |= in push_back()
58 (Unit)1 << (size_ % MARISA_WORD_SIZE); in push_back()
66 return (units_[i / MARISA_WORD_SIZE]
67 & ((Unit)1 << (i % MARISA_WORD_SIZE))) != 0;
Dpop-count.h10 #if MARISA_WORD_SIZE == 64
Dbit-vector.cc167 #if MARISA_WORD_SIZE == 64
346 #if MARISA_WORD_SIZE == 64
/external/marisa-trie/include/marisa/
Dbase.h35 #define MARISA_WORD_SIZE 64 macro
37 #define MARISA_WORD_SIZE 32 macro
/external/marisa-trie/lib/marisa/grimoire/
Dintrin.h129 #if MARISA_WORD_SIZE == 64
/external/marisa-trie/tests/
Dbase-test.cc21 ASSERT(MARISA_WORD_SIZE == (sizeof(std::size_t) * 8)); in TestTypes()
Dvector-test.cc15 #if MARISA_WORD_SIZE == 64