Move bitwise builtins into bits.h

This commit is contained in:
Elliot Gorokhovsky committed 2022-02-14 11:16:03 -05:00
1 parent 970460f67d
commit db2f4a6532
16 files changed
+250 -400

No files matched your search

+2 -1
View File
@@ -24,11 +24,12 @@
#include "common/huf.h"
#include "fuzz_helpers.h"
#include "fuzz_data_producer.h"
#include "common/bits.h"
static size_t adjustTableLog(size_t tableLog, size_t maxSymbol)
{
size_t const alphabetSize = maxSymbol + 1;
size_t minTableLog = BIT_highbit32(alphabetSize) + 1;
size_t minTableLog = ZSTD_highbit32(alphabetSize) + 1;
if ((alphabetSize & (alphabetSize - 1)) != 0) {
++minTableLog;
}