Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f2a11b158a24301e9158e9c873fa88e5eb775486 Commit: f2a11b158a24301e9158e9c873fa88e5eb775486 Parent: 248a9dc32a24a80cd13a1be66dae099d97381155 Author: Nitin Gupta <[EMAIL PROTECTED]> AuthorDate: Sun Jul 15 23:37:21 2007 -0700 Committer: Linus Torvalds <[EMAIL PROTECTED]> CommitDate: Mon Jul 16 09:05:34 2007 -0700
LZO1X: fix lzo1x_worst_compress This is a correction for a macro which gives worst case compressed data size by LZO1X. This patch was provided by the LZO author (Markus Oberhumer). Signed-off-by: Nitin Gupta <[EMAIL PROTECTED]> Cc: "Markus F.X.J. Oberhumer" <[EMAIL PROTECTED]> Cc: "Richard Purdie" <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- include/linux/lzo.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/lzo.h b/include/linux/lzo.h index 582d8b7..d793497 100644 --- a/include/linux/lzo.h +++ b/include/linux/lzo.h @@ -17,7 +17,7 @@ #define LZO1X_MEM_COMPRESS (16384 * sizeof(unsigned char *)) #define LZO1X_1_MEM_COMPRESS LZO1X_MEM_COMPRESS -#define lzo1x_worst_compress(x) (x + (x / 64) + 16 + 3) +#define lzo1x_worst_compress(x) ((x) + ((x) / 16) + 64 + 3) /* This requires 'workmem' of size LZO1X_1_MEM_COMPRESS */ int lzo1x_1_compress(const unsigned char *src, size_t src_len, - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html