summaryrefslogtreecommitdiffstats
path: root/cpukit/zlib
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-03-18 10:11:19 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-03-18 10:11:19 +0000
commitdf7764c32d037c1633ac39880ab62c9bf178f4a0 (patch)
tree038d1def386496de9177f2165ae0160bd7fa1ab8 /cpukit/zlib
parentImport from zlib-1.2.4 (diff)
downloadrtems-df7764c32d037c1633ac39880ab62c9bf178f4a0.tar.bz2
Import from zlib-1.2.4
Diffstat (limited to 'cpukit/zlib')
-rw-r--r--cpukit/zlib/contrib/asm686/README.68617
-rw-r--r--cpukit/zlib/contrib/asm686/match.S24
2 files changed, 36 insertions, 5 deletions
diff --git a/cpukit/zlib/contrib/asm686/README.686 b/cpukit/zlib/contrib/asm686/README.686
index a593f23afd..a0bf3bea4a 100644
--- a/cpukit/zlib/contrib/asm686/README.686
+++ b/cpukit/zlib/contrib/asm686/README.686
@@ -32,3 +32,20 @@ then do:
CFLAGS="-O3 -DASMV" ./configure
make OBJA=match.o
+
+
+Update:
+
+I've been ignoring these assembly routines for years, believing that
+gcc's generated code had caught up with it sometime around gcc 2.95
+and the major rearchitecting of the Pentium 4. However, I recently
+learned that, despite what I believed, this code still has some life
+in it. On the Pentium 4 and AMD64 chips, it continues to run about 8%
+faster than the code produced by gcc 4.1.
+
+In acknowledgement of its continuing usefulness, I've altered the
+license to match that of the rest of zlib. Share and Enjoy!
+
+Brian Raiter
+breadbox@muppetlabs.com
+April, 2007
diff --git a/cpukit/zlib/contrib/asm686/match.S b/cpukit/zlib/contrib/asm686/match.S
index 5c3e9ee367..06817e1dd0 100644
--- a/cpukit/zlib/contrib/asm686/match.S
+++ b/cpukit/zlib/contrib/asm686/match.S
@@ -1,9 +1,23 @@
-/* match.s -- Pentium-Pro-optimized version of longest_match()
- * Written for zlib 1.1.2
- * Copyright (C) 1998 Brian Raiter <breadbox@muppetlabs.com>
+/* match.S -- x86 assembly version of the zlib longest_match() function.
+ * Optimized for the Intel 686 chips (PPro and later).
*
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License.
+ * Copyright (C) 1998, 2007 Brian Raiter <breadbox@muppetlabs.com>
+ *
+ * This software is provided 'as-is', without any express or implied
+ * warranty. In no event will the author be held liable for any damages
+ * arising from the use of this software.
+ *
+ * Permission is granted to anyone to use this software for any purpose,
+ * including commercial applications, and to alter it and redistribute it
+ * freely, subject to the following restrictions:
+ *
+ * 1. The origin of this software must not be misrepresented; you must not
+ * claim that you wrote the original software. If you use this software
+ * in a product, an acknowledgment in the product documentation would be
+ * appreciated but is not required.
+ * 2. Altered source versions must be plainly marked as such, and must not be
+ * misrepresented as being the original software.
+ * 3. This notice may not be removed or altered from any source distribution.
*/
#ifndef NO_UNDERLINE