#endif
#include "wimlib/decompress_common.h"
-#include "wimlib/error.h"
#include "wimlib/util.h" /* for BUILD_BUG_ON() */
#include <string.h>
if (unlikely(left < 0)) {
/* The lengths overflow the codespace; that is, the code
* is over-subscribed. */
- DEBUG("Invalid prefix code (over-subscribed)");
return -1;
}
}
table_num_entries * sizeof(decode_table[0]));
return 0;
}
- DEBUG("Invalid prefix code (incomplete set)");
return -1;
}
v = MAKE_DIRECT_ENTRY(sorted_syms[sym_idx], codeword_len);
v |= v << 16;
- if (sizeof(unsigned long) == 8) {
- /* This may produce a compiler warning if an
- * 'unsigned long' is 32 bits, but this won't be
- * executed unless an 'unsigned long' is at
- * least 64 bits anyway. */
- v |= v << 32;
- }
+ v |= v << (sizeof(unsigned long) == 8 ? 32 : 0);
p = (aliased_long_t *)decode_table_ptr;
n = stores_per_loop;