| * lzodefs.h -- architecture, OS and compiler specific defines |
| * Copyright (C) 1996-2005 Markus F.X.J. Oberhumer <markus@oberhumer.com> |
| * The full LZO package can be found at: |
| * http://www.oberhumer.com/opensource/lzo/ |
| * Changed for kernel use by: |
| * Nitin Gupta <nitingupta910@gmail.com> |
| * Richard Purdie <rpurdie@openedhand.com> |
| #define LZO_VERSION 0x2020 |
| #define LZO_VERSION_STRING "2.02" |
| #define LZO_VERSION_DATE "Oct 17 2005" |
| #define M1_MAX_OFFSET 0x0400 |
| #define M2_MAX_OFFSET 0x0800 |
| #define M3_MAX_OFFSET 0x4000 |
| #define M4_MAX_OFFSET 0xbfff |
| #define D_MASK ((1u << D_BITS) - 1) |
| #define D_HIGH ((D_MASK >> 1) + 1) |
| #define DX2(p, s1, s2) (((((size_t)((p)[2]) << (s2)) ^ (p)[1]) \ |
| #define DX3(p, s1, s2, s3) ((DX2((p)+1, s2, s3) << (s1)) ^ (p)[0]) |