* [Kernel-janitors] [PATCH] lib/zlib-deflate MIN/MAX removal
@ 2004-02-26 21:17 Michael Veeck
0 siblings, 0 replies; only message in thread
From: Michael Veeck @ 2004-02-26 21:17 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
Patch (against 2.6.3) removes unnecessary min/max macros and changes
calls to use kernel.h macros instead.
Best Regards
Michael
[-- Attachment #2: minmax_lib_zlib.patch --]
[-- Type: text/plain, Size: 908 bytes --]
--- linux-2.6.3.org/lib/zlib_deflate/deftree.c 2004-02-18 04:57:20.000000000 +0100
+++ linux-2.6.3.test/lib/zlib_deflate/deftree.c 2004-02-26 21:18:08.675049760 +0100
@@ -217,10 +217,6 @@
}
#endif /* DEBUG_ZLIB */
-
-#define MAX(a,b) (a >= b ? a : b)
-/* the arguments must not have side effects */
-
/* ===========================================================================
* Initialize the various 'constant' tables. In a multi-threaded environment,
* this function may be called by two threads concurrently, but this is
@@ -598,7 +594,7 @@
/* Create a new node father of n and m */
tree[node].Freq = tree[n].Freq + tree[m].Freq;
- s->depth[node] = (uch) (MAX(s->depth[n], s->depth[m]) + 1);
+ s->depth[node] = (uch) (max(s->depth[n], s->depth[m]) + 1);
tree[n].Dad = tree[m].Dad = (ush)node;
#ifdef DUMP_BL_TREE
if (tree == s->bl_tree) {
[-- Attachment #3: Type: text/plain, Size: 163 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-02-26 21:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-26 21:17 [Kernel-janitors] [PATCH] lib/zlib-deflate MIN/MAX removal Michael Veeck
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.