89 return card_num; |
89 return card_num; |
90 } |
90 } |
91 |
91 |
92 jbyte* card_num_2_ptr(size_t card_num) { |
92 jbyte* card_num_2_ptr(size_t card_num) { |
93 assert(card_num >= 0 && card_num < _reserved_max_card_num, |
93 assert(card_num >= 0 && card_num < _reserved_max_card_num, |
94 err_msg("card num out of range: "SIZE_FORMAT, card_num)); |
94 err_msg("card num out of range: " SIZE_FORMAT, card_num)); |
95 return (jbyte*) (_ct_bot + card_num); |
95 return (jbyte*) (_ct_bot + card_num); |
96 } |
96 } |
97 |
97 |
98 // Clear the counts table for the given (exclusive) index range. |
98 // Clear the counts table for the given (exclusive) index range. |
99 void clear_range(size_t from_card_num, size_t to_card_num); |
99 void clear_range(size_t from_card_num, size_t to_card_num); |