summaryrefslogtreecommitdiff
path: root/cpukit/zlib/contrib/masmx86/gvmat32c.c
diff options
context:
space:
mode:
authorcvs2git <rtems-devel@rtems.org>2011-03-18 10:11:49 +0000
committercvs2git <rtems-devel@rtems.org>2011-03-18 10:11:49 +0000
commit7c6c80fbe17136c54a699d11d97c73996687186b (patch)
tree0ba7181942f2d12f1555af22096e7a809c3d3901 /cpukit/zlib/contrib/masmx86/gvmat32c.c
parent4f05dd91a9a12fc2932fa4ac6aabce906eb07419 (diff)
This commit was manufactured by cvs2svn to create tag 'zlib-1_2_5'.zlib-1_2_5
Sprout from zlib 2011-03-18 10:11:48 UTC Ralf Corsepius <ralf.corsepius@rtems.org> 'Import from zlib-1.2.5' Delete: cpukit/zlib/algorithm.txt cpukit/zlib/as400/bndsrc cpukit/zlib/as400/compile.clp cpukit/zlib/as400/readme.txt cpukit/zlib/as400/zlib.inc cpukit/zlib/contrib/asm586/README.586 cpukit/zlib/contrib/asm586/match.S cpukit/zlib/contrib/masm686/match.asm cpukit/zlib/contrib/masmx64/inffasx64.obj cpukit/zlib/contrib/masmx86/gvmat32.asm cpukit/zlib/contrib/masmx86/gvmat32c.c cpukit/zlib/contrib/masmx86/mkasm.bat cpukit/zlib/contrib/minizip/ChangeLogUnzip cpukit/zlib/contrib/testzlib/testzlib.sln cpukit/zlib/contrib/testzlib/testzlib.vcproj cpukit/zlib/contrib/vstudio/vc7/miniunz.vcproj cpukit/zlib/contrib/vstudio/vc7/minizip.vcproj cpukit/zlib/contrib/vstudio/vc7/zlib.rc cpukit/zlib/contrib/vstudio/vc7/zlibstat.vcproj cpukit/zlib/contrib/vstudio/vc7/zlibvc.def cpukit/zlib/contrib/vstudio/vc7/zlibvc.sln cpukit/zlib/contrib/vstudio/vc7/zlibvc.vcproj cpukit/zlib/contrib/vstudio/vc8/miniunz.vcproj cpukit/zlib/contrib/vstudio/vc8/minizip.vcproj cpukit/zlib/contrib/vstudio/vc8/testzlib.vcproj cpukit/zlib/contrib/vstudio/vc8/testzlibdll.vcproj cpukit/zlib/contrib/vstudio/vc8/zlib.rc cpukit/zlib/contrib/vstudio/vc8/zlibstat.vcproj cpukit/zlib/contrib/vstudio/vc8/zlibvc.def cpukit/zlib/contrib/vstudio/vc8/zlibvc.sln cpukit/zlib/contrib/vstudio/vc8/zlibvc.vcproj cpukit/zlib/gzio.c cpukit/zlib/old/zlib.html cpukit/zlib/projects/README.projects cpukit/zlib/projects/visualc6/README.txt cpukit/zlib/projects/visualc6/example.dsp cpukit/zlib/projects/visualc6/minigzip.dsp cpukit/zlib/projects/visualc6/zlib.dsp cpukit/zlib/projects/visualc6/zlib.dsw cpukit/zlib/zconf.in.h
Diffstat (limited to 'cpukit/zlib/contrib/masmx86/gvmat32c.c')
-rw-r--r--cpukit/zlib/contrib/masmx86/gvmat32c.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/cpukit/zlib/contrib/masmx86/gvmat32c.c b/cpukit/zlib/contrib/masmx86/gvmat32c.c
deleted file mode 100644
index 7ad2b27943..0000000000
--- a/cpukit/zlib/contrib/masmx86/gvmat32c.c
+++ /dev/null
@@ -1,62 +0,0 @@
-/* gvmat32.c -- C portion of the optimized longest_match for 32 bits x86
- * Copyright (C) 1995-1996 Jean-loup Gailly and Gilles Vollant.
- * File written by Gilles Vollant, by modifiying the longest_match
- * from Jean-loup Gailly in deflate.c
- * it prepare all parameters and call the assembly longest_match_gvasm
- * longest_match execute standard C code is wmask != 0x7fff
- * (assembly code is faster with a fixed wmask)
- *
- * Read comment at beginning of gvmat32.asm for more information
- */
-
-#if defined(ASMV) && (!defined(NOOLDPENTIUMCODE))
-#include "deflate.h"
-
-/* if your C compiler don't add underline before function name,
- define ADD_UNDERLINE_ASMFUNC */
-#ifdef ADD_UNDERLINE_ASMFUNC
-#define longest_match_7fff _longest_match_7fff
-#define longest_match_686 _longest_match_686
-#define cpudetect32 _cpudetect32
-#endif
-
-
-unsigned long cpudetect32();
-
-uInt longest_match_c(
- deflate_state *s,
- IPos cur_match); /* current match */
-
-
-uInt longest_match_7fff(
- deflate_state *s,
- IPos cur_match); /* current match */
-
-uInt longest_match_686(
- deflate_state *s,
- IPos cur_match); /* current match */
-
-
-static uInt iIsPPro=2;
-
-void match_init ()
-{
- iIsPPro = (((cpudetect32()/0x100)&0xf)>=6) ? 1 : 0;
-}
-
-uInt longest_match(
- deflate_state *s,
- IPos cur_match) /* current match */
-{
- if (iIsPPro!=0)
- return longest_match_686(s,cur_match);
-
- if (s->w_mask != 0x7fff)
- return longest_match_686(s,cur_match);
-
- /* now ((s->w_mask == 0x7fff) && (iIsPPro==0)) */
- return longest_match_7fff(s,cur_match);
-}
-
-
-#endif /* defined(ASMV) && (!defined(NOOLDPENTIUMCODE)) */