]>
glassweightruler.freedombox.rocks Git - Ventoy.git/blob - SQUASHFS/squashfs-tools-4.4/squashfs-tools/lz4_wrapper.h
7 * Phillip Lougher <phillip@squashfs.org.uk>
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2,
12 * or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28 #define __BYTE_ORDER BYTE_ORDER
29 #define __BIG_ENDIAN BIG_ENDIAN
30 #define __LITTLE_ENDIAN LITTLE_ENDIAN
35 #if __BYTE_ORDER == __BIG_ENDIAN
36 extern unsigned int inswap_le32(unsigned int);
38 #define SQUASHFS_INSWAP_COMP_OPTS(s) { \
39 (s)->version = inswap_le32((s)->version); \
40 (s)->flags = inswap_le32((s)->flags); \
43 #define SQUASHFS_INSWAP_COMP_OPTS(s)
47 * Define the various stream formats recognised.
48 * Currently omly legacy stream format is supported by the
52 #define LZ4_FLAGS_MASK 1
54 /* Define the compression flags recognised. */
57 struct lz4_comp_opts
{