Get the number of bytes associate with a packing.
| 38 | |
| 39 | /// Get the number of bytes associate with a packing. |
| 40 | int GetNumBytes(int num_values, int bit_width, int bit_offset) { |
| 41 | return static_cast<int>(bit_util::BytesForBits(num_values * bit_width + bit_offset)); |
| 42 | } |
| 43 | |
| 44 | /// Generate random values that can be packed within the given bit width. |
| 45 | template <typename Uint> |
no test coverage detected