Planeshift

xdelta3-cfgs.h

Go to the documentation of this file.
00001 /* xdelta 3 - delta compression tools and library
00002  * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007. Joshua P. MacDonald
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017  */
00018 
00019 /******************************************************************
00020  SOFT string matcher
00021  ******************************************************************/
00022 
00023 #if XD3_BUILD_SOFT
00024 
00025 #define TEMPLATE      soft
00026 #define LLOOK         stream->smatcher.large_look
00027 #define LSTEP         stream->smatcher.large_step
00028 #define SLOOK         stream->smatcher.small_look
00029 #define SCHAIN        stream->smatcher.small_chain
00030 #define SLCHAIN       stream->smatcher.small_lchain
00031 #define MAXLAZY       stream->smatcher.max_lazy
00032 #define LONGENOUGH    stream->smatcher.long_enough
00033 
00034 #define SOFTCFG 1
00035 #include "xdelta3.c"
00036 #undef  SOFTCFG
00037 
00038 #undef  TEMPLATE
00039 #undef  LLOOK
00040 #undef  SLOOK
00041 #undef  LSTEP
00042 #undef  SCHAIN
00043 #undef  SLCHAIN
00044 #undef  MAXLAZY
00045 #undef  LONGENOUGH
00046 #endif
00047 
00048 #define SOFTCFG 0
00049 
00050 /************************************************************
00051  FASTEST string matcher
00052  **********************************************************/
00053 #if XD3_BUILD_FASTEST
00054 #define TEMPLATE      fastest
00055 #define LLOOK         9
00056 #define LSTEP         26
00057 #define SLOOK         4U
00058 #define SCHAIN        1
00059 #define SLCHAIN       1
00060 #define MAXLAZY       6
00061 #define LONGENOUGH    6
00062 
00063 #include "xdelta3.c"
00064 
00065 #undef  TEMPLATE
00066 #undef  LLOOK
00067 #undef  SLOOK
00068 #undef  LSTEP
00069 #undef  SCHAIN
00070 #undef  SLCHAIN
00071 #undef  MAXLAZY
00072 #undef  LONGENOUGH
00073 #endif
00074 
00075 /************************************************************
00076  FASTER string matcher
00077  **********************************************************/
00078 #if XD3_BUILD_FASTER
00079 #define TEMPLATE      faster
00080 #define LLOOK         9
00081 #define LSTEP         15
00082 #define SLOOK         4U
00083 #define SCHAIN        1
00084 #define SLCHAIN       1
00085 #define MAXLAZY       18
00086 #define LONGENOUGH    18
00087 
00088 #include "xdelta3.c"
00089 
00090 #undef  TEMPLATE
00091 #undef  LLOOK
00092 #undef  SLOOK
00093 #undef  LSTEP
00094 #undef  SCHAIN
00095 #undef  SLCHAIN
00096 #undef  MAXLAZY
00097 #undef  LONGENOUGH
00098 #endif
00099 
00100 /******************************************************
00101  FAST string matcher
00102  ********************************************************/
00103 #if XD3_BUILD_FAST
00104 #define TEMPLATE      fast
00105 #define LLOOK         9
00106 #define LSTEP         8
00107 #define SLOOK         4U
00108 #define SCHAIN        4
00109 #define SLCHAIN       1
00110 #define MAXLAZY       18
00111 #define LONGENOUGH    35
00112 
00113 #include "xdelta3.c"
00114 
00115 #undef  TEMPLATE
00116 #undef  LLOOK
00117 #undef  SLOOK
00118 #undef  LSTEP
00119 #undef  SCHAIN
00120 #undef  SLCHAIN
00121 #undef  MAXLAZY
00122 #undef  LONGENOUGH
00123 #endif
00124 
00125 /**************************************************
00126  SLOW string matcher
00127  **************************************************************/
00128 #if XD3_BUILD_SLOW
00129 #define TEMPLATE      slow
00130 #define LLOOK         9
00131 #define LSTEP         2
00132 #define SLOOK         4U
00133 #define SCHAIN        44
00134 #define SLCHAIN       13
00135 #define MAXLAZY       90
00136 #define LONGENOUGH    70
00137 
00138 #include "xdelta3.c"
00139 
00140 #undef  TEMPLATE
00141 #undef  LLOOK
00142 #undef  SLOOK
00143 #undef  LSTEP
00144 #undef  SCHAIN
00145 #undef  SLCHAIN
00146 #undef  MAXLAZY
00147 #undef  LONGENOUGH
00148 #endif
00149 
00150 /********************************************************
00151  DEFAULT string matcher
00152  ************************************************************/
00153 #if XD3_BUILD_DEFAULT
00154 #define TEMPLATE      default
00155 #define LLOOK         9
00156 #define LSTEP         3
00157 #define SLOOK         4U
00158 #define SCHAIN        8
00159 #define SLCHAIN       2
00160 #define MAXLAZY       36
00161 #define LONGENOUGH    70
00162 
00163 #include "xdelta3.c"
00164 
00165 #undef  TEMPLATE
00166 #undef  LLOOK
00167 #undef  SLOOK
00168 #undef  LSTEP
00169 #undef  SCHAIN
00170 #undef  SLCHAIN
00171 #undef  MAXLAZY
00172 #undef  LONGENOUGH
00173 #endif