projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/zlib: add s390 hardware support for kernel zlib_inflate
[linux-2.6-microblaze.git]
/
lib
/
zlib_inflate
/
inflate.h
diff --git
a/lib/zlib_inflate/inflate.h
b/lib/zlib_inflate/inflate.h
index
3d17b3d
..
f79337d
100644
(file)
--- a/
lib/zlib_inflate/inflate.h
+++ b/
lib/zlib_inflate/inflate.h
@@
-11,6
+11,8
@@
subject to change. Applications should only use zlib.h.
*/
subject to change. Applications should only use zlib.h.
*/
+#include "inftrees.h"
+
/* Possible inflate modes between inflate() calls */
typedef enum {
HEAD, /* i: waiting for magic header */
/* Possible inflate modes between inflate() calls */
typedef enum {
HEAD, /* i: waiting for magic header */
@@
-108,4
+110,10
@@
struct inflate_state {
unsigned short work[288]; /* work area for code table building */
code codes[ENOUGH]; /* space for code tables */
};
unsigned short work[288]; /* work area for code table building */
code codes[ENOUGH]; /* space for code tables */
};
+
+/* Reverse the bytes in a 32-bit value */
+#define REVERSE(q) \
+ ((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \
+ (((q) & 0xff00) << 8) + (((q) & 0xff) << 24))
+
#endif
#endif