]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/isa-l/igzip/encode_df.c
Import ceph 15.2.8
[ceph.git] / ceph / src / isa-l / igzip / encode_df.c
index 633b8ce675a6d3a7ca1c818160966f0c2a40ed97..d26d1c94233c17952009eb1da1578f98345257f0 100644 (file)
@@ -4,11 +4,13 @@
 #include <memory.h>
 #include <assert.h>
 
+#if __x86_64__  || __i386__ || _M_X64 || _M_IX86
 #ifdef _MSC_VER
 # include <intrin.h>
 #else
 # include <x86intrin.h>
 #endif
+#endif //__x86_64__  || __i386__ || _M_X64 || _M_IX86
 
 #include "encode_df.h"
 #include "bitbuf2.h"
@@ -21,7 +23,7 @@ struct deflate_icf *encode_deflate_icf_base(struct deflate_icf *next_in,
 
        while (next_in < end_in && !is_full(bb)) {
                lsym = hufftables->lit_len_table[next_in->lit_len];
-               dsym = hufftables->dist_table[next_in->lit_dist];
+               dsym = hufftables->dist_lit_table[next_in->lit_dist];
 
                // insert ll code, dist_code, and extra_bits
                write_bits_unsafe(bb, lsym.code_and_extra, lsym.length);