|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 4/5] gzip: move crc state into consilidated gzip state
On 4/11/24 15:43, Andrew Cooper wrote: On 11/04/2024 4:25 pm, Daniel P. Smith wrote:diff --git a/xen/common/gzip/inflate.c b/xen/common/gzip/inflate.c index c8dd35962abb..6c8c7452a31f 100644 --- a/xen/common/gzip/inflate.c +++ b/xen/common/gzip/inflate.c @@ -1125,16 +1125,14 @@ static int __init inflate(struct gzip_data *gd) * **********************************************************************/-static ulg __initdata crc_32_tab[256];-static ulg __initdata crc; /* initialized in makecrc() so it'll reside in bss */ -#define CRC_VALUE (crc ^ 0xffffffffUL) +#define CRC_VALUE (gd->crc ^ 0xffffffffUL)/** Code to compute the CRC-32 table. Borrowed from * gzip-1.0.3/makecrc.c. */-static void __init makecrc(void) Yes, I can switch crc and crc_32_tab to uint32_t. This change, if correct, halves the size of gzip_state. Ack. v/r, dps
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |