compress.c, decompress.h: Use correct little endian annotations
[wimlib] / include / wimlib / decompress.h
index c020cbadeb64ea35394fc04bedd3af00b89170b9..0b8e11b6ba48021b285a0bb979b4d41c66072aa9 100644 (file)
@@ -76,7 +76,7 @@ bitstream_ensure_bits(struct input_bitstream *istream, unsigned num_bits)
                        unsigned shift = sizeof(input_bitbuf_t) * 8 - 16 -
                                         istream->bitsleft;
                        istream->bitbuf |= (input_bitbuf_t)le16_to_cpu(
-                                               *(u16*)istream->data) << shift;
+                                               *(le16*)istream->data) << shift;
                        istream->data += 2;
                        istream->bitsleft += 16;
                        istream->data_bytes_left -= 2;
@@ -189,7 +189,7 @@ read_huffsym_near_end_of_input(struct input_bitstream *istream,
  *                             directory in the decode_table, as the
  *                             decode_table contains 2**table_bits entries.
  */
-static inline int
+static _always_inline_attribute int
 read_huffsym(struct input_bitstream *istream,
             const u16 decode_table[],
             const u8 lens[],
@@ -237,8 +237,9 @@ read_huffsym(struct input_bitstream *istream,
        return ret;
 }
 
-extern int make_huffman_decode_table(u16 decode_table[], unsigned num_syms,
-                                    unsigned num_bits, const u8 lengths[],
-                                    unsigned max_codeword_len);
+extern int
+make_huffman_decode_table(u16 decode_table[], unsigned num_syms,
+                         unsigned num_bits, const u8 lengths[],
+                         unsigned max_codeword_len);
 
 #endif /* _WIMLIB_DECOMPRESS_H */