provides the minimum logSize to safely represent a distribution */
| 7793 | |
| 7794 | /* provides the minimum logSize to safely represent a distribution */ |
| 7795 | static unsigned FSE_minTableLog(size_t srcSize, unsigned maxSymbolValue) |
| 7796 | { |
| 7797 | U32 minBitsSrc = BIT_highbit32((U32)(srcSize)) + 1; |
| 7798 | U32 minBitsSymbols = BIT_highbit32(maxSymbolValue) + 2; |
| 7799 | U32 minBits = minBitsSrc < minBitsSymbols ? minBitsSrc : minBitsSymbols; |
| 7800 | assert(srcSize > 1); /* Not supported, RLE should be used instead */ |
| 7801 | return minBits; |
| 7802 | } |
| 7803 | |
| 7804 | unsigned FSE_optimalTableLog_internal(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue, unsigned minus) |
| 7805 | { |
no test coverage detected