libsigrok
unreleased development snapshot
sigrok hardware access and backend library
|
#include <limits.h>
#include <stddef.h>
#include "minilzo.h"
#include <string.h>
#include <assert.h>
Go to the source code of this file.
Macros | |
#define | __LZO_IN_MINILZO 1 |
#define | __LZO_CONF_H 1 |
#define | __LZO_NOEXPORT1 /*empty*/ |
#define | __LZO_NOEXPORT2 /*empty*/ |
#define | LZO_PUBLIC_DECL(r) LZO_EXTERN(r) |
#define | LZO_PUBLIC_IMPL(r) LZO_PUBLIC(r) |
#define | LZO_LOCAL_DECL(r) __LZO_EXTERN_C LZO_LOCAL_IMPL(r) |
#define | LZO_LOCAL_IMPL(r) __LZO_NOEXPORT1 r __LZO_NOEXPORT2 __LZO_CDECL |
#define | LZO_STATIC_DECL(r) LZO_PRIVATE(r) |
#define | LZO_STATIC_IMPL(r) LZO_PRIVATE(r) |
#define | HAVE_STRING_H 1 |
#define | HAVE_MEMCMP 1 |
#define | HAVE_MEMCPY 1 |
#define | HAVE_MEMMOVE 1 |
#define | HAVE_MEMSET 1 |
#define | lzo_memcmp(a, b, c) memcmp(a,b,c) |
#define | lzo_memcpy(a, b, c) memcpy(a,b,c) |
#define | lzo_memmove(a, b, c) memmove(a,b,c) |
#define | lzo_memset(a, b, c) memset(a,b,c) |
#define | NDEBUG 1 |
#define | BOUNDS_CHECKING_OFF_DURING(stmt) stmt |
#define | BOUNDS_CHECKING_OFF_IN_EXPR(expr) (expr) |
#define | LZO_BYTE(x) ((unsigned char) (x)) |
#define | LZO_MAX(a, b) ((a) >= (b) ? (a) : (b)) |
#define | LZO_MIN(a, b) ((a) <= (b) ? (a) : (b)) |
#define | LZO_MAX3(a, b, c) ((a) >= (b) ? LZO_MAX(a,c) : LZO_MAX(b,c)) |
#define | LZO_MIN3(a, b, c) ((a) <= (b) ? LZO_MIN(a,c) : LZO_MIN(b,c)) |
#define | lzo_sizeof(type) ((lzo_uint) (sizeof(type))) |
#define | LZO_HIGH(array) ((lzo_uint) (sizeof(array)/sizeof(*(array)))) |
#define | LZO_SIZE(bits) (1u << (bits)) |
#define | LZO_MASK(bits) (LZO_SIZE(bits) - 1) |
#define | LZO_USIZE(bits) ((lzo_uint) 1 << (bits)) |
#define | LZO_UMASK(bits) (LZO_USIZE(bits) - 1) |
#define | DMUL(a, b) ((lzo_xint) ((a) * (b))) |
#define | __LZO_FUNC_H 1 |
#define | lzo_memops_TU0p void __LZO_MMODEL * |
#define | lzo_memops_TU1p unsigned char __LZO_MMODEL * |
#define | lzo_memops_TU2p lzo_memops_TU2 * |
#define | lzo_memops_TU4p lzo_memops_TU4 __LZO_MMODEL * |
#define | lzo_memops_TU8p lzo_memops_TU8 __LZO_MMODEL * |
#define | lzo_memops_set_TU1p volatile lzo_memops_TU1p |
#define | lzo_memops_move_TU1p lzo_memops_TU1p |
#define | LZO_MEMOPS_SET1(dd, cc) |
#define | LZO_MEMOPS_SET2(dd, cc) |
#define | LZO_MEMOPS_SET3(dd, cc) |
#define | LZO_MEMOPS_SET4(dd, cc) |
#define | LZO_MEMOPS_MOVE1(dd, ss) |
#define | LZO_MEMOPS_MOVE2(dd, ss) |
#define | LZO_MEMOPS_MOVE3(dd, ss) |
#define | LZO_MEMOPS_MOVE4(dd, ss) |
#define | LZO_MEMOPS_MOVE8(dd, ss) |
#define | LZO_MEMOPS_COPY1(dd, ss) LZO_MEMOPS_MOVE1(dd,ss) |
#define | LZO_MEMOPS_COPY2(dd, ss) LZO_MEMOPS_MOVE2(dd,ss) |
#define | LZO_MEMOPS_COPY4(dd, ss) LZO_MEMOPS_MOVE4(dd,ss) |
#define | LZO_MEMOPS_COPY8(dd, ss) LZO_BLOCK_BEGIN LZO_MEMOPS_COPY4(dd,ss); LZO_MEMOPS_COPY4((lzo_memops_TU1p)(lzo_memops_TU0p)(dd)+4,(const lzo_memops_TU1p)(const lzo_memops_TU0p)(ss)+4); LZO_BLOCK_END |
#define | LZO_MEMOPS_COPYN(dd, ss, nn) |
#define | LZO_MEMOPS_GET_LE16(ss) lzo_memops_get_le16(ss) |
#define | LZO_MEMOPS_GET_LE32(ss) lzo_memops_get_le32(ss) |
#define | LZO_MEMOPS_GET_NE16(ss) lzo_memops_get_ne16(ss) |
#define | LZO_MEMOPS_GET_NE32(ss) lzo_memops_get_ne32(ss) |
#define | LZO_MEMOPS_PUT_LE16(dd, vv) lzo_memops_put_le16(dd,vv) |
#define | LZO_MEMOPS_PUT_LE32(dd, vv) lzo_memops_put_le32(dd,vv) |
#define | LZO_MEMOPS_PUT_NE16(dd, vv) lzo_memops_put_ne16(dd,vv) |
#define | LZO_MEMOPS_PUT_NE32(dd, vv) lzo_memops_put_ne32(dd,vv) |
#define | UA_SET1 LZO_MEMOPS_SET1 |
#define | UA_SET2 LZO_MEMOPS_SET2 |
#define | UA_SET3 LZO_MEMOPS_SET3 |
#define | UA_SET4 LZO_MEMOPS_SET4 |
#define | UA_MOVE1 LZO_MEMOPS_MOVE1 |
#define | UA_MOVE2 LZO_MEMOPS_MOVE2 |
#define | UA_MOVE3 LZO_MEMOPS_MOVE3 |
#define | UA_MOVE4 LZO_MEMOPS_MOVE4 |
#define | UA_MOVE8 LZO_MEMOPS_MOVE8 |
#define | UA_COPY1 LZO_MEMOPS_COPY1 |
#define | UA_COPY2 LZO_MEMOPS_COPY2 |
#define | UA_COPY3 LZO_MEMOPS_COPY3 |
#define | UA_COPY4 LZO_MEMOPS_COPY4 |
#define | UA_COPY8 LZO_MEMOPS_COPY8 |
#define | UA_COPYN LZO_MEMOPS_COPYN |
#define | UA_COPYN_X LZO_MEMOPS_COPYN |
#define | UA_GET_LE16 LZO_MEMOPS_GET_LE16 |
#define | UA_GET_LE32 LZO_MEMOPS_GET_LE32 |
#define | UA_GET_NE16 LZO_MEMOPS_GET_NE16 |
#define | UA_GET_NE32 LZO_MEMOPS_GET_NE32 |
#define | UA_PUT_LE16 LZO_MEMOPS_PUT_LE16 |
#define | UA_PUT_LE32 LZO_MEMOPS_PUT_LE32 |
#define | UA_PUT_NE16 LZO_MEMOPS_PUT_NE16 |
#define | UA_PUT_NE32 LZO_MEMOPS_PUT_NE32 |
#define | MEMCPY8_DS(dest, src, len) lzo_memcpy(dest,src,len); dest += len; src += len |
#define | BZERO8_PTR(s, l, n) lzo_memset((lzo_voidp)(s),0,(lzo_uint)(l)*(n)) |
#define | MEMCPY_DS(dest, src, len) do *dest++ = *src++; while (--len > 0) |
#define | __LZO_PTR_H 1 |
#define | PTR(a) ((lzo_uintptr_t) (a)) |
#define | PTR_LINEAR(a) PTR(a) |
#define | PTR_ALIGNED_4(a) ((PTR_LINEAR(a) & 3) == 0) |
#define | PTR_ALIGNED_8(a) ((PTR_LINEAR(a) & 7) == 0) |
#define | PTR_ALIGNED2_4(a, b) (((PTR_LINEAR(a) | PTR_LINEAR(b)) & 3) == 0) |
#define | PTR_ALIGNED2_8(a, b) (((PTR_LINEAR(a) | PTR_LINEAR(b)) & 7) == 0) |
#define | PTR_LT(a, b) (PTR(a) < PTR(b)) |
#define | PTR_GE(a, b) (PTR(a) >= PTR(b)) |
#define | PTR_DIFF(a, b) (PTR(a) - PTR(b)) |
#define | pd(a, b) ((lzo_uint) ((a)-(b))) |
#define | LZO_DETERMINISTIC 1 |
#define | LZO_DICT_USE_PTR 1 |
#define | lzo_dict_t const lzo_bytep |
#define | lzo_dict_p lzo_dict_t * |
#define | LZO_BASE 65521u |
#define | LZO_NMAX 5552 |
#define | LZO_DO1(buf, i) s1 += buf[i]; s2 += s1 |
#define | LZO_DO2(buf, i) LZO_DO1(buf,i); LZO_DO1(buf,i+1) |
#define | LZO_DO4(buf, i) LZO_DO2(buf,i); LZO_DO2(buf,i+2) |
#define | LZO_DO8(buf, i) LZO_DO4(buf,i); LZO_DO4(buf,i+4) |
#define | LZO_DO16(buf, i) LZO_DO8(buf,i); LZO_DO8(buf,i+8) |
#define | lzo_hsize_t lzo_uint |
#define | lzo_hvoid_p lzo_voidp |
#define | lzo_hbyte_p lzo_bytep |
#define | LZOLIB_PUBLIC(r, f) LZO_PUBLIC(r) f |
#define | lzo_hmemcmp lzo_memcmp |
#define | lzo_hmemcpy lzo_memcpy |
#define | lzo_hmemmove lzo_memmove |
#define | lzo_hmemset lzo_memset |
#define | __LZOLIB_HMEMCPY_CH_INCLUDED 1 |
#define | LZO1X 1 |
#define | LZO_EOF_CODE 1 |
#define | M2_MAX_OFFSET 0x0800 |
#define | LZO_DICT_USE_PTR 0 |
#define | lzo_dict_t lzo_uint16_t |
#define | LZO_NEED_DICT_H 1 |
#define | D_BITS 14 |
#define | D_INDEX1(d, p) d = DM(DMUL(0x21,DX3(p,5,5,6)) >> 5) |
#define | D_INDEX2(d, p) d = (d & (D_MASK & 0x7ff)) ^ (D_HIGH | 0x1f) |
#define | DINDEX(dv, p) DM(((DMUL(0x1824429d,dv)) >> (32-D_BITS))) |
#define | __LZO_CONFIG1X_H 1 |
#define | M1_MAX_OFFSET 0x0400 |
#define | M3_MAX_OFFSET 0x4000 |
#define | M4_MAX_OFFSET 0xbfff |
#define | MX_MAX_OFFSET (M1_MAX_OFFSET + M2_MAX_OFFSET) |
#define | M1_MIN_LEN 2 |
#define | M1_MAX_LEN 2 |
#define | M2_MIN_LEN 3 |
#define | M2_MAX_LEN 8 |
#define | M3_MIN_LEN 3 |
#define | M3_MAX_LEN 33 |
#define | M4_MIN_LEN 3 |
#define | M4_MAX_LEN 9 |
#define | M1_MARKER 0 |
#define | M2_MARKER 64 |
#define | M3_MARKER 32 |
#define | M4_MARKER 16 |
#define | MIN_LOOKAHEAD (M2_MAX_LEN + 1) |
#define | LZO_HASH LZO_HASH_LZO_INCREMENTAL_B |
#define | DL_MIN_LEN M2_MIN_LEN |
#define | __LZO_DICT_H 1 |
#define | D_SIZE LZO_SIZE(D_BITS) |
#define | D_MASK LZO_MASK(D_BITS) |
#define | D_HIGH ((D_MASK >> 1) + 1) |
#define | DD_BITS 0 |
#define | DD_SIZE LZO_SIZE(DD_BITS) |
#define | DD_MASK LZO_MASK(DD_BITS) |
#define | DL_BITS (D_BITS - DD_BITS) |
#define | DL_SIZE LZO_SIZE(DL_BITS) |
#define | DL_MASK LZO_MASK(DL_BITS) |
#define | DL_SHIFT ((DL_BITS + (DL_MIN_LEN - 1)) / DL_MIN_LEN) |
#define | LZO_HASH_GZIP 1 |
#define | LZO_HASH_GZIP_INCREMENTAL 2 |
#define | LZO_HASH_LZO_INCREMENTAL_A 3 |
#define | LZO_HASH_LZO_INCREMENTAL_B 4 |
#define | _DV2_A(p, shift1, shift2) (((( (lzo_xint)((p)[0]) << shift1) ^ (p)[1]) << shift2) ^ (p)[2]) |
#define | _DV2_B(p, shift1, shift2) (((( (lzo_xint)((p)[2]) << shift1) ^ (p)[1]) << shift2) ^ (p)[0]) |
#define | _DV3_B(p, shift1, shift2, shift3) ((_DV2_B((p)+1,shift1,shift2) << (shift3)) ^ (p)[0]) |
#define | _DV_A(p, shift) _DV2_A(p,shift,shift) |
#define | _DV_B(p, shift) _DV2_B(p,shift,shift) |
#define | DA2(p, s1, s2) (((((lzo_xint)((p)[2]) << (s2)) + (p)[1]) << (s1)) + (p)[0]) |
#define | DS2(p, s1, s2) (((((lzo_xint)((p)[2]) << (s2)) - (p)[1]) << (s1)) - (p)[0]) |
#define | DX2(p, s1, s2) (((((lzo_xint)((p)[2]) << (s2)) ^ (p)[1]) << (s1)) ^ (p)[0]) |
#define | DA3(p, s1, s2, s3) ((DA2((p)+1,s2,s3) << (s1)) + (p)[0]) |
#define | DS3(p, s1, s2, s3) ((DS2((p)+1,s2,s3) << (s1)) - (p)[0]) |
#define | DX3(p, s1, s2, s3) ((DX2((p)+1,s2,s3) << (s1)) ^ (p)[0]) |
#define | DMS(v, s) ((lzo_uint) (((v) & (D_MASK >> (s))) << (s))) |
#define | DM(v) DMS(v,0) |
#define | __LZO_HASH_INCREMENTAL 1 |
#define | DVAL_FIRST(dv, p) dv = _DV_B((p),5) |
#define | DVAL_NEXT(dv, p) dv ^= p[-1]; dv = (((dv) >> 5) ^ ((lzo_xint)(p[2]) << (2*5))) |
#define | _DINDEX(dv, p) ((DMUL(0x9f5f,dv)) >> 5) |
#define | DVAL_LOOKAHEAD DL_MIN_LEN |
#define | DINDEX1 D_INDEX1 |
#define | DINDEX2 D_INDEX2 |
#define | DVAL_ASSERT(dv, p) ((void) 0) |
#define | DENTRY(p, in) ((lzo_dict_t) pd(p, in)) |
#define | GINDEX(m_pos, m_off, dict, dindex, in) m_off = dict[dindex] |
#define | UPDATE_D(dict, drun, dv, p, in) dict[ DINDEX(dv,p) ] = DENTRY(p,in) |
#define | UPDATE_I(dict, drun, index, p, in) dict[index] = DENTRY(p,in) |
#define | UPDATE_P(ptr, drun, p, in) (ptr)[0] = DENTRY(p,in) |
#define | LZO_CHECK_MPOS_DET(m_pos, m_off, in, ip, max_offset) |
#define | LZO_CHECK_MPOS_NON_DET(m_pos, m_off, in, ip, max_offset) |
#define | LZO_CHECK_MPOS LZO_CHECK_MPOS_NON_DET |
#define | LZO_DETERMINISTIC !(LZO_DICT_USE_PTR) |
#define | DO_COMPRESS lzo1x_1_compress |
#define | do_compress LZO_PP_ECONCAT2(DO_COMPRESS,_core) |
#define | DO_DECOMPRESS lzo1x_decompress |
#define | TEST_LB(m_pos) ((void) 0) |
#define | TEST_LBO(m_pos, o) ((void) 0) |
#define | TEST_IP 1 |
#define | TEST_OP 1 |
#define | TEST_IP_AND_TEST_OP 1 |
#define | NEED_IP(x) ((void) 0) |
#define | TEST_IV(x) ((void) 0) |
#define | NEED_OP(x) ((void) 0) |
#define | TEST_OV(x) ((void) 0) |
#define | LZO_TEST_OVERRUN 1 |
#define | DO_DECOMPRESS lzo1x_decompress_safe |
#define | LZO_TEST_OVERRUN_INPUT 2 |
#define | LZO_TEST_OVERRUN_OUTPUT 2 |
#define | LZO_TEST_OVERRUN_LOOKBEHIND 1 |
#define | TEST_IP (ip < ip_end) |
#define | NEED_IP(x) if ((lzo_uint)(ip_end - ip) < (lzo_uint)(x)) goto input_overrun |
#define | TEST_IV(x) if ((x) > (lzo_uint)0 - (511)) goto input_overrun |
#define | TEST_OP (op <= op_end) |
#define | NEED_OP(x) if ((lzo_uint)(op_end - op) < (lzo_uint)(x)) goto output_overrun |
#define | TEST_OV(x) if ((x) > (lzo_uint)0 - (511)) goto output_overrun |
#define | TEST_LB(m_pos) if (PTR_LT(m_pos,out) || PTR_GE(m_pos,op)) goto lookbehind_overrun |
#define | TEST_LBO(m_pos, o) if (PTR_LT(m_pos,out) || PTR_GE(m_pos,op-(o))) goto lookbehind_overrun |
#define | HAVE_TEST_IP 1 |
#define | TEST_OP 1 |
#define | TEST_IP_AND_TEST_OP TEST_IP |
#define | HAVE_NEED_IP 1 |
#define | HAVE_NEED_OP 1 |
#define | HAVE_ANY_IP 1 |
#define | HAVE_ANY_OP 1 |
Typedefs | |
typedef struct lzo_memops_TU2_struct | lzo_memops_TU2 |
typedef struct lzo_memops_TU4_struct | lzo_memops_TU4 |
typedef struct lzo_memops_TU8_struct | lzo_memops_TU8 |
Variables | |
struct lzo_memops_TU2_struct | __lzo_may_alias |
lzo_full_align_t | |
#define __LZO_PTR_H 1 |
#define _DV2_A | ( | p, | |
shift1, | |||
shift2 | |||
) | (((( (lzo_xint)((p)[0]) << shift1) ^ (p)[1]) << shift2) ^ (p)[2]) |
#define _DV2_B | ( | p, | |
shift1, | |||
shift2 | |||
) | (((( (lzo_xint)((p)[2]) << shift1) ^ (p)[1]) << shift2) ^ (p)[0]) |
#define _DV3_B | ( | p, | |
shift1, | |||
shift2, | |||
shift3 | |||
) | ((_DV2_B((p)+1,shift1,shift2) << (shift3)) ^ (p)[0]) |
#define BZERO8_PTR | ( | s, | |
l, | |||
n | |||
) | lzo_memset((lzo_voidp)(s),0,(lzo_uint)(l)*(n)) |
#define D_BITS 14 |
Definition at line 4621 of file minilzo.c.
Referenced by DO_COMPRESS().
#define D_INDEX2 | ( | d, | |
p | |||
) | d = (d & (D_MASK & 0x7ff)) ^ (D_HIGH | 0x1f) |
#define DA2 | ( | p, | |
s1, | |||
s2 | |||
) | (((((lzo_xint)((p)[2]) << (s2)) + (p)[1]) << (s1)) + (p)[0]) |
#define DA3 | ( | p, | |
s1, | |||
s2, | |||
s3 | |||
) | ((DA2((p)+1,s2,s3) << (s1)) + (p)[0]) |
#define DENTRY | ( | p, | |
in | |||
) | ((lzo_dict_t) pd(p, in)) |
#define DL_MIN_LEN M2_MIN_LEN |
#define DL_SHIFT ((DL_BITS + (DL_MIN_LEN - 1)) / DL_MIN_LEN) |
#define DO_COMPRESS lzo1x_1_compress |
#define do_compress LZO_PP_ECONCAT2(DO_COMPRESS,_core) |
Definition at line 4921 of file minilzo.c.
Referenced by DO_COMPRESS().
#define DO_DECOMPRESS lzo1x_decompress |
#define DO_DECOMPRESS lzo1x_decompress_safe |
#define DS2 | ( | p, | |
s1, | |||
s2 | |||
) | (((((lzo_xint)((p)[2]) << (s2)) - (p)[1]) << (s1)) - (p)[0]) |
#define DS3 | ( | p, | |
s1, | |||
s2, | |||
s3 | |||
) | ((DS2((p)+1,s2,s3) << (s1)) - (p)[0]) |
#define DVAL_LOOKAHEAD DL_MIN_LEN |
#define DVAL_NEXT | ( | dv, | |
p | |||
) | dv ^= p[-1]; dv = (((dv) >> 5) ^ ((lzo_xint)(p[2]) << (2*5))) |
#define DX2 | ( | p, | |
s1, | |||
s2 | |||
) | (((((lzo_xint)((p)[2]) << (s2)) ^ (p)[1]) << (s1)) ^ (p)[0]) |
#define DX3 | ( | p, | |
s1, | |||
s2, | |||
s3 | |||
) | ((DX2((p)+1,s2,s3) << (s1)) ^ (p)[0]) |
#define GINDEX | ( | m_pos, | |
m_off, | |||
dict, | |||
dindex, | |||
in | |||
) | m_off = dict[dindex] |
#define LZO_BASE 65521u |
Definition at line 4270 of file minilzo.c.
Referenced by lzo_adler32().
#define LZO_BYTE | ( | x | ) | ((unsigned char) (x)) |
Definition at line 3515 of file minilzo.c.
Referenced by DO_COMPRESS(), lzo_memops_put_le16(), and lzo_memops_put_le32().
#define LZO_CHECK_MPOS LZO_CHECK_MPOS_NON_DET |
#define LZO_CHECK_MPOS_DET | ( | m_pos, | |
m_off, | |||
in, | |||
ip, | |||
max_offset | |||
) |
#define LZO_CHECK_MPOS_NON_DET | ( | m_pos, | |
m_off, | |||
in, | |||
ip, | |||
max_offset | |||
) |
#define LZO_DETERMINISTIC !(LZO_DICT_USE_PTR) |
#define lzo_dict_p lzo_dict_t * |
#define lzo_dict_t const lzo_bytep |
Definition at line 4616 of file minilzo.c.
Referenced by DO_COMPRESS().
Definition at line 4277 of file minilzo.c.
Referenced by lzo_adler32().
#define LZO_HASH LZO_HASH_LZO_INCREMENTAL_B |
#define lzo_hbyte_p lzo_bytep |
Definition at line 4327 of file minilzo.c.
Referenced by LZOLIB_PUBLIC().
#define LZO_HIGH | ( | array | ) | ((lzo_uint) (sizeof(array)/sizeof(*(array)))) |
#define lzo_hmemcmp lzo_memcmp |
#define lzo_hmemcpy lzo_memcpy |
#define lzo_hmemmove lzo_memmove |
#define lzo_hmemset lzo_memset |
#define LZO_LOCAL_DECL | ( | r | ) | __LZO_EXTERN_C LZO_LOCAL_IMPL(r) |
#define LZO_LOCAL_IMPL | ( | r | ) | __LZO_NOEXPORT1 r __LZO_NOEXPORT2 __LZO_CDECL |
#define LZO_MAX | ( | a, | |
b | |||
) | ((a) >= (b) ? (a) : (b)) |
Definition at line 3520 of file minilzo.c.
Referenced by LZOLIB_PUBLIC().
#define LZO_MEMOPS_COPY1 | ( | dd, | |
ss | |||
) | LZO_MEMOPS_MOVE1(dd,ss) |
#define LZO_MEMOPS_COPY2 | ( | dd, | |
ss | |||
) | LZO_MEMOPS_MOVE2(dd,ss) |
Referenced by LZO_COMPILE_TIME_ASSERT_HEADER(), lzo_memops_get_ne16(), lzo_memops_put_le16(), and lzo_memops_put_ne16().
#define LZO_MEMOPS_COPY4 | ( | dd, | |
ss | |||
) | LZO_MEMOPS_MOVE4(dd,ss) |
Referenced by lzo_memops_get_le32(), lzo_memops_get_ne32(), lzo_memops_put_le32(), and lzo_memops_put_ne32().
#define LZO_MEMOPS_COPY8 | ( | dd, | |
ss | |||
) | LZO_BLOCK_BEGIN LZO_MEMOPS_COPY4(dd,ss); LZO_MEMOPS_COPY4((lzo_memops_TU1p)(lzo_memops_TU0p)(dd)+4,(const lzo_memops_TU1p)(const lzo_memops_TU0p)(ss)+4); LZO_BLOCK_END |
#define LZO_MEMOPS_COPYN | ( | dd, | |
ss, | |||
nn | |||
) |
#define LZO_MEMOPS_GET_LE16 | ( | ss | ) | lzo_memops_get_le16(ss) |
#define LZO_MEMOPS_GET_LE32 | ( | ss | ) | lzo_memops_get_le32(ss) |
#define LZO_MEMOPS_GET_NE16 | ( | ss | ) | lzo_memops_get_ne16(ss) |
#define LZO_MEMOPS_GET_NE32 | ( | ss | ) | lzo_memops_get_ne32(ss) |
#define LZO_MEMOPS_MOVE1 | ( | dd, | |
ss | |||
) |
#define LZO_MEMOPS_MOVE2 | ( | dd, | |
ss | |||
) |
#define LZO_MEMOPS_MOVE3 | ( | dd, | |
ss | |||
) |
#define LZO_MEMOPS_MOVE4 | ( | dd, | |
ss | |||
) |
#define LZO_MEMOPS_MOVE8 | ( | dd, | |
ss | |||
) |
#define lzo_memops_move_TU1p lzo_memops_TU1p |
#define LZO_MEMOPS_PUT_LE16 | ( | dd, | |
vv | |||
) | lzo_memops_put_le16(dd,vv) |
#define LZO_MEMOPS_PUT_LE32 | ( | dd, | |
vv | |||
) | lzo_memops_put_le32(dd,vv) |
#define LZO_MEMOPS_PUT_NE16 | ( | dd, | |
vv | |||
) | lzo_memops_put_ne16(dd,vv) |
#define LZO_MEMOPS_PUT_NE32 | ( | dd, | |
vv | |||
) | lzo_memops_put_ne32(dd,vv) |
#define LZO_MEMOPS_SET1 | ( | dd, | |
cc | |||
) |
#define LZO_MEMOPS_SET2 | ( | dd, | |
cc | |||
) |
#define LZO_MEMOPS_SET3 | ( | dd, | |
cc | |||
) |
#define LZO_MEMOPS_SET4 | ( | dd, | |
cc | |||
) |
#define lzo_memops_set_TU1p volatile lzo_memops_TU1p |
#define lzo_memops_TU0p void __LZO_MMODEL * |
#define lzo_memops_TU1p unsigned char __LZO_MMODEL * |
Definition at line 3673 of file minilzo.c.
Referenced by LZO_COMPILE_TIME_ASSERT_HEADER(), lzo_memops_get_le32(), lzo_memops_put_le16(), and lzo_memops_put_le32().
#define lzo_memops_TU2p lzo_memops_TU2 * |
Definition at line 3687 of file minilzo.c.
Referenced by LZO_COMPILE_TIME_ASSERT_HEADER(), lzo_memops_get_ne16(), and lzo_memops_put_le16().
#define lzo_memops_TU4p lzo_memops_TU4 __LZO_MMODEL * |
Definition at line 3702 of file minilzo.c.
Referenced by lzo_memops_get_le32(), lzo_memops_get_ne32(), and lzo_memops_put_le32().
#define lzo_memops_TU8p lzo_memops_TU8 __LZO_MMODEL * |
#define lzo_memset | ( | a, | |
b, | |||
c | |||
) | memset(a,b,c) |
Definition at line 3468 of file minilzo.c.
Referenced by DO_COMPRESS().
#define LZO_MIN | ( | a, | |
b | |||
) | ((a) <= (b) ? (a) : (b)) |
Definition at line 3521 of file minilzo.c.
Referenced by DO_COMPRESS().
#define LZO_NMAX 5552 |
Definition at line 4271 of file minilzo.c.
Referenced by lzo_adler32().
#define LZO_PUBLIC_DECL | ( | r | ) | LZO_EXTERN(r) |
#define LZO_PUBLIC_IMPL | ( | r | ) | LZO_PUBLIC(r) |
#define LZO_STATIC_DECL | ( | r | ) | LZO_PRIVATE(r) |
#define LZO_STATIC_IMPL | ( | r | ) | LZO_PRIVATE(r) |
#define LZOLIB_PUBLIC | ( | r, | |
f | |||
) | LZO_PUBLIC(r) f |
#define M2_MAX_OFFSET 0x0800 |
Definition at line 4608 of file minilzo.c.
Referenced by DO_DECOMPRESS().
#define M4_MARKER 16 |
Definition at line 4670 of file minilzo.c.
Referenced by DO_COMPRESS().
#define M4_MAX_OFFSET 0xbfff |
Definition at line 4652 of file minilzo.c.
Referenced by DO_DECOMPRESS().
#define MEMCPY8_DS | ( | dest, | |
src, | |||
len | |||
) | lzo_memcpy(dest,src,len); dest += len; src += len |
#define MEMCPY_DS | ( | dest, | |
src, | |||
len | |||
) | do *dest++ = *src++; while (--len > 0) |
#define MIN_LOOKAHEAD (M2_MAX_LEN + 1) |
#define MX_MAX_OFFSET (M1_MAX_OFFSET + M2_MAX_OFFSET) |
#define NEED_IP | ( | x | ) | ((void) 0) |
Definition at line 5863 of file minilzo.c.
Referenced by DO_DECOMPRESS().
#define NEED_OP | ( | x | ) | ((void) 0) |
Definition at line 5875 of file minilzo.c.
Referenced by DO_DECOMPRESS().
#define pd | ( | a, | |
b | |||
) | ((lzo_uint) ((a)-(b))) |
Referenced by DO_COMPRESS(), and DO_DECOMPRESS().
#define PTR | ( | a | ) | ((lzo_uintptr_t) (a)) |
#define PTR_ALIGNED2_4 | ( | a, | |
b | |||
) | (((PTR_LINEAR(a) | PTR_LINEAR(b)) & 3) == 0) |
Referenced by DO_DECOMPRESS().
#define PTR_ALIGNED2_8 | ( | a, | |
b | |||
) | (((PTR_LINEAR(a) | PTR_LINEAR(b)) & 7) == 0) |
#define PTR_ALIGNED_4 | ( | a | ) | ((PTR_LINEAR(a) & 3) == 0) |
#define PTR_ALIGNED_8 | ( | a | ) | ((PTR_LINEAR(a) & 7) == 0) |
#define PTR_LINEAR | ( | a | ) | PTR(a) |
Referenced by __lzo_ptr_linear().
#define TEST_IV | ( | x | ) | ((void) 0) |
Definition at line 5865 of file minilzo.c.
Referenced by DO_DECOMPRESS().
#define TEST_IV | ( | x | ) | if ((x) > (lzo_uint)0 - (511)) goto input_overrun |
#define TEST_LB | ( | m_pos | ) | ((void) 0) |
Definition at line 5882 of file minilzo.c.
Referenced by DO_DECOMPRESS().
#define TEST_OV | ( | x | ) | ((void) 0) |
Definition at line 5877 of file minilzo.c.
Referenced by DO_DECOMPRESS().
#define TEST_OV | ( | x | ) | if ((x) > (lzo_uint)0 - (511)) goto output_overrun |
#define UA_COPY1 LZO_MEMOPS_COPY1 |
#define UA_COPY2 LZO_MEMOPS_COPY2 |
#define UA_COPY4 LZO_MEMOPS_COPY4 |
Definition at line 4026 of file minilzo.c.
Referenced by DO_DECOMPRESS().
#define UA_COPY8 LZO_MEMOPS_COPY8 |
Definition at line 4029 of file minilzo.c.
Referenced by DO_DECOMPRESS().
#define UA_COPYN LZO_MEMOPS_COPYN |
Definition at line 4032 of file minilzo.c.
Referenced by DO_COMPRESS().
#define UA_COPYN_X LZO_MEMOPS_COPYN |
#define UA_GET_LE16 LZO_MEMOPS_GET_LE16 |
Definition at line 4038 of file minilzo.c.
Referenced by _lzo_config_check(), and DO_DECOMPRESS().
#define UA_GET_LE32 LZO_MEMOPS_GET_LE32 |
Definition at line 4041 of file minilzo.c.
Referenced by _lzo_config_check().
#define UA_GET_NE16 LZO_MEMOPS_GET_NE16 |
Definition at line 4049 of file minilzo.c.
Referenced by _lzo_config_check().
#define UA_GET_NE32 LZO_MEMOPS_GET_NE32 |
Definition at line 4052 of file minilzo.c.
Referenced by _lzo_config_check().
#define UA_MOVE1 LZO_MEMOPS_MOVE1 |
#define UA_MOVE2 LZO_MEMOPS_MOVE2 |
#define UA_MOVE3 LZO_MEMOPS_MOVE3 |
#define UA_MOVE4 LZO_MEMOPS_MOVE4 |
#define UA_MOVE8 LZO_MEMOPS_MOVE8 |
#define UA_PUT_LE16 LZO_MEMOPS_PUT_LE16 |
#define UA_PUT_LE32 LZO_MEMOPS_PUT_LE32 |
#define UA_PUT_NE16 LZO_MEMOPS_PUT_NE16 |
#define UA_PUT_NE32 LZO_MEMOPS_PUT_NE32 |
#define UA_SET1 LZO_MEMOPS_SET1 |
Definition at line 3990 of file minilzo.c.
Referenced by DO_COMPRESS().
#define UA_SET2 LZO_MEMOPS_SET2 |
#define UA_SET3 LZO_MEMOPS_SET3 |
#define UA_SET4 LZO_MEMOPS_SET4 |
#define UPDATE_I | ( | dict, | |
drun, | |||
index, | |||
p, | |||
in | |||
) | dict[index] = DENTRY(p,in) |
typedef struct lzo_memops_TU2_struct lzo_memops_TU2 |
typedef struct lzo_memops_TU4_struct lzo_memops_TU4 |
typedef struct lzo_memops_TU8_struct lzo_memops_TU8 |
Definition at line 4191 of file minilzo.c.
References __lzo_ptr_linear(), lzo_bytep, LZO_INFO_STRING, LZO_PUBLIC, lzo_uintptr_t, LZO_VERSION_DATE, and LZO_VERSION_STRING.
__lzo_init_v2 | ( | unsigned | v, |
int | s1, | ||
int | s2, | ||
int | s3, | ||
int | s4, | ||
int | s5, | ||
int | s6, | ||
int | s7, | ||
int | s8, | ||
int | s9 | ||
) |
Definition at line 4549 of file minilzo.c.
References _lzo_config_check(), int, LZO_E_ERROR, LZO_E_OK, lzo_sizeof_dict_t, LZO_UNUSED, and lzo_voidp().
__lzo_ptr_linear | ( | const lzo_voidp | ptr | ) |
Definition at line 4175 of file minilzo.c.
References LZO_PUBLIC, lzo_uintptr_t, and PTR_LINEAR.
Referenced by __lzo_align_gap(), and LZO_EXTERN().
_lzo_config_check | ( | void | ) |
Definition at line 4447 of file minilzo.c.
References lzo_bitops_ctlz32_func(), lzo_bitops_cttz32_func(), lzo_bytep, LZO_E_ERROR, LZO_E_OK, LZO_PUBLIC, lzo_uintp, LZO_UNUSED_FUNC, lzo_voidp(), UA_GET_LE16, UA_GET_LE32, UA_GET_NE16, and UA_GET_NE32.
Referenced by __lzo_init_v2().
_lzo_version_string | ( | void | ) |
Definition at line 4259 of file minilzo.c.
References lzo_charp, and LZO_PUBLIC.
DO_COMPRESS | ( | const lzo_bytep | in, |
lzo_uint | in_len, | ||
lzo_bytep | out, | ||
lzo_uintp | out_len, | ||
lzo_voidp | wrkmem | ||
) |
Definition at line 5212 of file minilzo.c.
References D_BITS, do_compress, LZO_BYTE, lzo_bytep, lzo_dict_t, LZO_E_OK, lzo_memset, LZO_MIN, LZO_PUBLIC, lzo_uintptr_t, M4_MARKER, pd, UA_COPYN, and UA_SET1.
DO_DECOMPRESS | ( | const lzo_bytep | in, |
lzo_uint | in_len, | ||
lzo_bytep | out, | ||
lzo_uintp | out_len, | ||
lzo_voidp | wrkmem | ||
) |
Definition at line 5395 of file minilzo.c.
References lzo_bytep, LZO_E_INPUT_NOT_CONSUMED, LZO_E_INPUT_OVERRUN, LZO_E_LOOKBEHIND_OVERRUN, LZO_E_OK, LZO_E_OUTPUT_OVERRUN, LZO_UNUSED, M2_MAX_OFFSET, M4_MAX_OFFSET, NEED_IP, NEED_OP, pd, PTR_ALIGNED2_4, TEST_IV, TEST_LB, TEST_OV, UA_COPY4, UA_COPY8, and UA_GET_LE16.
__lzo_static_forceinline unsigned lzo_bitops_ctlz32_func | ( | lzo_uint32_t | v | ) |
Definition at line 3568 of file minilzo.c.
References __lzo_static_forceinline, LZO_UNUSED, and void().
Referenced by _lzo_config_check(), and lzo_unused_funcs_impl().
__lzo_static_forceinline unsigned lzo_bitops_cttz32_func | ( | lzo_uint32_t | v | ) |
Definition at line 3612 of file minilzo.c.
References __lzo_static_forceinline, LZO_UNUSED, and void().
Referenced by _lzo_config_check(), and lzo_unused_funcs_impl().
LZO_COMPILE_TIME_ASSERT_HEADER | ( | sizeof(*(lzo_memops_TU1p) 0) | = =1 | ) |
Definition at line 3777 of file minilzo.c.
References LZO_MEMOPS_COPY2, lzo_memops_TU1p, and lzo_memops_TU2p.
Referenced by lzo_memops_get_ne16(), and lzo_memops_get_ne32().
lzo_copyright | ( | void | ) |
Definition at line 4235 of file minilzo.c.
References lzo_bytep, and LZO_PUBLIC.
LZO_EXTERN | ( | const lzo_bytep | ) |
Definition at line 4081 of file minilzo.c.
References __lzo_ptr_linear(), lzo_bytep, lzo_uintptr_t, lzo_voidp(), and lzo_xint.
__lzo_static_forceinline lzo_uint32_t lzo_memops_get_le32 | ( | const lzo_voidp | ss | ) |
Definition at line 3855 of file minilzo.c.
References LZO_MEMOPS_COPY4, lzo_memops_TU1p, and lzo_memops_TU4p.
Referenced by lzo_unused_funcs_impl().
__lzo_static_forceinline lzo_uint16_t lzo_memops_get_ne16 | ( | const lzo_voidp | ss | ) |
Definition at line 3881 of file minilzo.c.
References LZO_COMPILE_TIME_ASSERT_HEADER(), LZO_MEMOPS_COPY2, and lzo_memops_TU2p.
Referenced by lzo_unused_funcs_impl().
__lzo_static_forceinline lzo_uint32_t lzo_memops_get_ne32 | ( | const lzo_voidp | ss | ) |
Definition at line 3894 of file minilzo.c.
References LZO_COMPILE_TIME_ASSERT_HEADER(), LZO_MEMOPS_COPY4, and lzo_memops_TU4p.
Referenced by lzo_unused_funcs_impl().
__lzo_static_forceinline void lzo_memops_put_le16 | ( | lzo_voidp | dd, |
lzo_uint16_t | vv | ||
) |
Definition at line 3912 of file minilzo.c.
References LZO_BYTE, LZO_MEMOPS_COPY2, lzo_memops_TU1p, and lzo_memops_TU2p.
Referenced by lzo_unused_funcs_impl().
__lzo_static_forceinline void lzo_memops_put_le32 | ( | lzo_voidp | dd, |
lzo_uint32_t | vv | ||
) |
Definition at line 3932 of file minilzo.c.
References LZO_BYTE, LZO_MEMOPS_COPY4, lzo_memops_TU1p, and lzo_memops_TU4p.
Referenced by lzo_unused_funcs_impl().
__lzo_static_forceinline void lzo_memops_put_ne16 | ( | lzo_voidp | dd, |
lzo_uint16_t | vv | ||
) |
Definition at line 3954 of file minilzo.c.
References LZO_MEMOPS_COPY2.
Referenced by lzo_unused_funcs_impl().
__lzo_static_forceinline void lzo_memops_put_ne32 | ( | lzo_voidp | dd, |
lzo_uint32_t | vv | ||
) |
Definition at line 3964 of file minilzo.c.
References LZO_MEMOPS_COPY4.
Referenced by lzo_unused_funcs_impl().
lzo_unused_funcs_impl | ( | void | , |
lzo_bitops_unused_funcs | |||
) |
Definition at line 3653 of file minilzo.c.
References lzo_bitops_ctlz32_func(), lzo_bitops_cttz32_func(), and LZO_UNUSED_FUNC.
lzo_unused_funcs_impl | ( | void | , |
lzo_memops_unused_funcs | |||
) |
Definition at line 3974 of file minilzo.c.
References lzo_memops_get_le32(), lzo_memops_get_ne16(), lzo_memops_get_ne32(), lzo_memops_put_le16(), lzo_memops_put_le32(), lzo_memops_put_ne16(), lzo_memops_put_ne32(), and LZO_UNUSED_FUNC.
lzo_version | ( | void | ) |
Definition at line 4241 of file minilzo.c.
References LZO_PUBLIC, and LZO_VERSION.
lzo_version_date | ( | void | ) |
Definition at line 4253 of file minilzo.c.
References lzo_charp, and LZO_PUBLIC.
Referenced by main().
lzo_version_string | ( | void | ) |
Definition at line 4247 of file minilzo.c.
References LZO_PUBLIC.
Referenced by main(), and sr_buildinfo_libs_get().
LZOLIB_PUBLIC | ( | int | , |
lzo_hmemcmp | |||
) | const |
Definition at line 4337 of file minilzo.c.
References __lzo_likely, lzo_hbyte_p, and LZO_STATIC_CAST.
LZOLIB_PUBLIC | ( | lzo_hvoid_p | , |
lzo_hmemcpy | |||
) |
Definition at line 4354 of file minilzo.c.
References __lzo_likely, lzo_hbyte_p, and LZO_STATIC_CAST.
LZOLIB_PUBLIC | ( | lzo_hvoid_p | , |
lzo_hmemmove | |||
) |
Definition at line 4369 of file minilzo.c.
References __lzo_likely, lzo_hbyte_p, and LZO_STATIC_CAST.
LZOLIB_PUBLIC | ( | lzo_hvoid_p | , |
lzo_hmemset | |||
) |
Definition at line 4395 of file minilzo.c.
References __lzo_likely, __lzo_noinline, lzo_bytep, lzo_hbyte_p, LZO_ITRUNC, LZO_MAX, LZO_PUBLIC, LZO_STATIC_CAST, lzo_uintptr_t, lzo_voidp(), and lzo_xint.
struct lzo_memops_TU8_struct __lzo_may_alias |