compress.c (180208) | compress.c (205471) |
---|---|
1/* compress.c -- compress a memory buffer | 1/* compress.c -- compress a memory buffer |
2 * Copyright (C) 1995-2003 Jean-loup Gailly. | 2 * Copyright (C) 1995-2005 Jean-loup Gailly. |
3 * For conditions of distribution and use, see copyright notice in zlib.h 4 */ 5 6/* @(#) $Id$ */ 7 8#define ZLIB_INTERNAL 9#include "zlib.h" 10 --- 59 unchanged lines hidden (view full) --- 70 71/* =========================================================================== 72 If the default memLevel or windowBits for deflateInit() is changed, then 73 this function needs to be updated. 74 */ 75uLong ZEXPORT compressBound (sourceLen) 76 uLong sourceLen; 77{ | 3 * For conditions of distribution and use, see copyright notice in zlib.h 4 */ 5 6/* @(#) $Id$ */ 7 8#define ZLIB_INTERNAL 9#include "zlib.h" 10 --- 59 unchanged lines hidden (view full) --- 70 71/* =========================================================================== 72 If the default memLevel or windowBits for deflateInit() is changed, then 73 this function needs to be updated. 74 */ 75uLong ZEXPORT compressBound (sourceLen) 76 uLong sourceLen; 77{ |
78 return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + 11; | 78 return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + 79 (sourceLen >> 25) + 13; |
79} | 80} |