summaryrefslogtreecommitdiff
path: root/distrib/special/gzip/compress.c
blob: 99b7fb091db0cc57e9230ebcc2eef202e4ed96d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*	$OpenBSD: compress.c,v 1.1 2003/12/16 22:40:58 henning Exp $	*/
/* compress.c -- compress a memory buffer
 * Copyright (C) 1995-2002 Jean-loup Gailly.
 * For conditions of distribution and use, see copyright notice in zlib.h
 */


#define ZLIB_INTERNAL
#include "zlib.h"

uLong ZEXPORT compressBound (sourceLen)
    uLong sourceLen;
{
    return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + 11;
}