| 245 | |
| 246 | template <typename new_type> |
| 247 | Status AdaptiveIntBuilder::ExpandIntSizeN() { |
| 248 | switch (int_size_) { |
| 249 | case 1: |
| 250 | return ExpandIntSizeInternal<new_type, int8_t>(); |
| 251 | case 2: |
| 252 | return ExpandIntSizeInternal<new_type, int16_t>(); |
| 253 | case 4: |
| 254 | return ExpandIntSizeInternal<new_type, int32_t>(); |
| 255 | case 8: |
| 256 | return ExpandIntSizeInternal<new_type, int64_t>(); |
| 257 | default: |
| 258 | DCHECK(false); |
| 259 | } |
| 260 | return Status::OK(); |
| 261 | } |
| 262 | |
| 263 | Status AdaptiveIntBuilder::ExpandIntSize(uint8_t new_int_size) { |
| 264 | switch (new_int_size) { |