| 122 | template <typename T> |
| 123 | inline void pack_binary( |
| 124 | const int* __restrict__ binary_code, T* __restrict__ compact_code, size_t length |
| 125 | ) { |
| 126 | constexpr size_t kTypeBits = sizeof(T) * 8; |
| 127 | |
| 128 | for (size_t i = 0; i < length; i += kTypeBits) { |
| 129 | T cur = 0; |
| 130 | for (size_t j = 0; j < kTypeBits; ++j) { |