* */
#include "wimlib/assert.h"
+#include "wimlib/compiler.h"
#include "wimlib/util.h"
#include "wimlib/types.h"
* the formatted offset without actually looking at the array.
*/
static inline unsigned
-lzx_get_position_slot_raw(unsigned formatted_offset)
+lzx_get_position_slot_raw(u32 formatted_offset)
{
if (formatted_offset >= 196608) {
return (formatted_offset >> 17) + 34;
/* Least-recently used queue for match offsets. */
struct lzx_lru_queue {
u32 R[LZX_NUM_RECENT_OFFSETS];
-};
+}
+#ifdef __x86_64__
+_aligned_attribute(8) /* Improves performance of LZX compression by 1% - 2%;
+ specifically, this speeds up
+ lzx_get_near_optimal_match(). */
+#endif
+;
/* In the LZX format, an offset of n bytes is actually encoded
* as (n + LZX_OFFSET_OFFSET). */