Searched refs:CHAR_BIT (Results 1 – 7 of 7) sorted by relevance
103 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()
26 (1 << (Ver4DictConstants::WORD_COUNT_FIELD_SIZE * CHAR_BIT)) - 64;
51 private static final int CHAR_BIT = 8; field in DnsUtils334 return i * CHAR_BIT + (Integer.numberOfLeadingZeros(x) - 24); // Java ints are 32 bits in compareIpv6PrefixMatchLen()336 return dstByte.length * CHAR_BIT; in compareIpv6PrefixMatchLen()
40 (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()
275 return ((static_cast<uint64_t>(mData0) << (FIELD1_SIZE * CHAR_BIT)) ^ mData1); in getValueOfValueEntry()
32 const int count = (1 << (Ver4DictConstants::WORD_COUNT_FIELD_SIZE * CHAR_BIT)) - 1; in TEST()
1173 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()