Home
last modified time | relevance | path

Searched refs:flag_start_bit_ (Results 1 – 4 of 4) sorted by relevance

/external/tesseract/dict/
Ddawg.h188 return ((edge_rec & (DIRECTION_FLAG << flag_start_bit_))) ? in direction_from_edge_rec()
193 return (edge_rec & (WERD_END_FLAG << flag_start_bit_)) != 0; in end_of_word_from_edge_rec()
208 *edge_rec |= (LAST_FLAG << flag_start_bit_); in set_last_flag_in_edge_rec()
272 int flag_start_bit_; variable
426 (edges_[edge_ref] &= ~(LAST_FLAG << flag_start_bit_)); in clear_last_flag()
444 return (edges_[edge_ref] & (LAST_FLAG << flag_start_bit_)) != 0; in last_edge()
Ddawg.cpp145 flag_start_bit_ = ceil(log(static_cast<double>(unicharset_size_))/log(2.0)); in init()
147 flag_start_bit_ = ceil(log(unicharset_size_)/log(2.0)); in init()
149 next_node_start_bit_ = flag_start_bit_ + NUM_FLAG_BITS; in init()
150 letter_mask_ = ~(~0 << flag_start_bit_); in init()
151 next_node_mask_ = ~0 << (flag_start_bit_ + NUM_FLAG_BITS); in init()
Dtrie.h150 (edge_ref & deref_node_index_mask_) >> flag_start_bit_; in deref_edge_ref()
157 return ((node_index << flag_start_bit_) | in make_edge_ref()
167 (static_cast<EDGE_RECORD>(flags) << flag_start_bit_) | in link_edge()
Dtrie.cpp129 *back_edge_ptr |= (WERD_END_FLAG << flag_start_bit_); in add_word_ending()
130 *edge_ptr |= (WERD_END_FLAG << flag_start_bit_); in add_word_ending()