deflate.c (195c5ad9d179dbea1c9026f2af5b3eb77f8205b3) deflate.c (9fec9f8ea51c782d58a8b86f8e868fc06c782386)
1/* +++ deflate.c */
2/* deflate.c -- compress data using the deflation algorithm
3 * Copyright (C) 1995-1996 Jean-loup Gailly.
4 * For conditions of distribution and use, see copyright notice in zlib.h
5 */
6
7/*
8 * ALGORITHM

--- 40 unchanged lines hidden (view full) ---

49 */
50
51#include <linux/module.h>
52#include <linux/zutil.h>
53#include "defutil.h"
54
55/* architecture-specific bits */
56#ifdef CONFIG_ZLIB_DFLTCC
1/* +++ deflate.c */
2/* deflate.c -- compress data using the deflation algorithm
3 * Copyright (C) 1995-1996 Jean-loup Gailly.
4 * For conditions of distribution and use, see copyright notice in zlib.h
5 */
6
7/*
8 * ALGORITHM

--- 40 unchanged lines hidden (view full) ---

49 */
50
51#include <linux/module.h>
52#include <linux/zutil.h>
53#include "defutil.h"
54
55/* architecture-specific bits */
56#ifdef CONFIG_ZLIB_DFLTCC
57# include "../zlib_dfltcc/dfltcc.h"
57# include "../zlib_dfltcc/dfltcc_deflate.h"
58#else
59#define DEFLATE_RESET_HOOK(strm) do {} while (0)
60#define DEFLATE_HOOK(strm, flush, bstate) 0
61#define DEFLATE_NEED_CHECKSUM(strm) 1
62#define DEFLATE_DFLTCC_ENABLED() 0
63#endif
64
65/* ===========================================================================

--- 35 unchanged lines hidden (view full) ---

101 */
102
103/* Workspace to be allocated for deflate processing */
104typedef struct deflate_workspace {
105 /* State memory for the deflator */
106 deflate_state deflate_memory;
107#ifdef CONFIG_ZLIB_DFLTCC
108 /* State memory for s390 hardware deflate */
58#else
59#define DEFLATE_RESET_HOOK(strm) do {} while (0)
60#define DEFLATE_HOOK(strm, flush, bstate) 0
61#define DEFLATE_NEED_CHECKSUM(strm) 1
62#define DEFLATE_DFLTCC_ENABLED() 0
63#endif
64
65/* ===========================================================================

--- 35 unchanged lines hidden (view full) ---

101 */
102
103/* Workspace to be allocated for deflate processing */
104typedef struct deflate_workspace {
105 /* State memory for the deflator */
106 deflate_state deflate_memory;
107#ifdef CONFIG_ZLIB_DFLTCC
108 /* State memory for s390 hardware deflate */
109 struct dfltcc_state dfltcc_memory;
109 struct dfltcc_deflate_state dfltcc_memory;
110#endif
111 Byte *window_memory;
112 Pos *prev_memory;
113 Pos *head_memory;
114 char *overlay_memory;
115} deflate_workspace;
116
117#ifdef CONFIG_ZLIB_DFLTCC

--- 1036 unchanged lines hidden ---
110#endif
111 Byte *window_memory;
112 Pos *prev_memory;
113 Pos *head_memory;
114 char *overlay_memory;
115} deflate_workspace;
116
117#ifdef CONFIG_ZLIB_DFLTCC

--- 1036 unchanged lines hidden ---