Home
last modified time | relevance | path

Searched refs:CHAR_BIT (Results 1 – 7 of 7) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dprobability_entry.h103 encodedEntry = (encodedEntry << (Ver4DictConstants::TIME_STAMP_FIELD_SIZE * CHAR_BIT)) in encode()
105 encodedEntry = (encodedEntry << (Ver4DictConstants::WORD_LEVEL_FIELD_SIZE * CHAR_BIT)) in encode()
107 encodedEntry = (encodedEntry << (Ver4DictConstants::WORD_COUNT_FIELD_SIZE * CHAR_BIT)) in encode()
110 encodedEntry = (encodedEntry << (Ver4DictConstants::PROBABILITY_SIZE * CHAR_BIT)) in encode()
154 (encodedEntry >> (pos * CHAR_BIT)) & ((1ull << (size * CHAR_BIT)) - 1)); in readFromEncodedEntry()
Dlanguage_model_dict_content_global_counters.cpp26 (1 << (Ver4DictConstants::WORD_COUNT_FIELD_SIZE * CHAR_BIT)) - 64;
/packages/modules/Connectivity/framework/src/android/net/util/
DDnsUtils.java51 private static final int CHAR_BIT = 8; field in DnsUtils
334 return i * CHAR_BIT + (Integer.numberOfLeadingZeros(x) - 24); // Java ints are 32 bits in compareIpv6PrefixMatchLen()
336 return dstByte.length * CHAR_BIT; in compareIpv6PrefixMatchLen()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dtrie_map.cpp40 (static_cast<uint64_t>(1) << ((FIELD0_SIZE + FIELD1_SIZE) * CHAR_BIT)) - 1;
204 if (!writeEntry(Entry(value >> (FIELD1_SIZE * CHAR_BIT), value), valueEntryIndex)) { in writeValue()
219 return writeEntry(Entry(value >> (FIELD1_SIZE * CHAR_BIT), value), valueEntryIndex); in updateValue()
Dtrie_map.h275 return ((static_cast<uint64_t>(mData0) << (FIELD1_SIZE * CHAR_BIT)) ^ mData1); in getValueOfValueEntry()
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/
Dlanguage_model_dict_content_global_counters_test.cpp32 const int count = (1 << (Ver4DictConstants::WORD_COUNT_FIELD_SIZE * CHAR_BIT)) - 1; in TEST()
/packages/modules/DnsResolver/
Dgetaddrinfo.cpp1173 for (j = 0; j < CHAR_BIT; ++j) { in _common_prefix_len()
1174 if (x & (1 << (CHAR_BIT - 1))) { in _common_prefix_len()
1175 return i * CHAR_BIT + j; in _common_prefix_len()
1180 return sizeof(*a1) * CHAR_BIT; in _common_prefix_len()