From 2fd2e12bd81c8bae872d4d0461b4a35d1b1f4e04 Mon Sep 17 00:00:00 2001 From: dsl Date: Sat, 18 Feb 2006 18:39:58 +0000 Subject: [PATCH] Don't bloat the standalone images with preset CRC tables and large routines. Ideally some of the loops need de-unrolling as well (and in adler32.c). Makes the i386 install floppies fit. --- common/dist/zlib/crc32.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/common/dist/zlib/crc32.c b/common/dist/zlib/crc32.c index f36753a53348..ec79330c6f85 100644 --- a/common/dist/zlib/crc32.c +++ b/common/dist/zlib/crc32.c @@ -1,4 +1,4 @@ -/* $NetBSD: crc32.c,v 1.3 2006/01/25 23:15:55 uwe Exp $ */ +/* $NetBSD: crc32.c,v 1.4 2006/02/18 18:39:58 dsl Exp $ */ /* crc32.c -- compute the CRC-32 of a data stream * Copyright (C) 1995-2005 Mark Adler @@ -32,9 +32,14 @@ #define local static +#if defined(__NetBSD__) && defined(_STANDALONE) +#define NOBYFOUR +#define DYNAMIC_CRC_TABLE +#endif + /* Find a four-byte integer type for crc32_little() and crc32_big(). */ #ifndef NOBYFOUR -#if defined(__NetBSD__) && (defined(_KERNEL) || defined(_STANDALONE)) +#if defined(__NetBSD__) && defined(_KERNEL) # define BYFOUR typedef uint32_t u4; #else @@ -55,7 +60,7 @@ # endif # endif # endif /* STDC */ -#endif /* __NetBSD__ && (_KERNEL || _STANDALONE) */ +#endif /* __NetBSD__ && _KERNEL */ #endif /* !NOBYFOUR */ /* Definitions for doing the crc four data bytes at a time. */