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