| 1074 | static constexpr int kValuesUnpacked = WorkingKernel::kValuesUnpacked; |
| 1075 | |
| 1076 | static const uint8_t* unpack(const uint8_t* in, unpacked_type* out) { |
| 1077 | using working_type = typename WorkingKernel::unpacked_type; |
| 1078 | |
| 1079 | working_type buffer[kValuesUnpacked] = {}; |
| 1080 | in = WorkingKernel::unpack(in, buffer); |
| 1081 | for (int k = 0; k < kValuesUnpacked; ++k) { |
| 1082 | out[k] = static_cast<unpacked_type>(buffer[k]); |
| 1083 | } |
| 1084 | return in; |
| 1085 | } |
| 1086 | }; |
| 1087 | |
| 1088 | /******************************* |