diff options
Diffstat (limited to 'contrib/testzlib')
-rw-r--r-- | contrib/testzlib/rdtsc64.asm | 18 | ||||
-rw-r--r-- | contrib/testzlib/rdtsc64.obj | bin | 0 -> 744 bytes | |||
-rw-r--r-- | contrib/testzlib/testzlib.c | 407 | ||||
-rw-r--r-- | contrib/testzlib/testzlib.txt | 10 | ||||
-rw-r--r-- | contrib/testzlib/testzlib8.sln | 32 | ||||
-rw-r--r-- | contrib/testzlib/testzlib8.vcproj | 638 |
6 files changed, 956 insertions, 149 deletions
diff --git a/contrib/testzlib/rdtsc64.asm b/contrib/testzlib/rdtsc64.asm new file mode 100644 index 0000000..6b78a8b --- /dev/null +++ b/contrib/testzlib/rdtsc64.asm | |||
@@ -0,0 +1,18 @@ | |||
1 | ; rdtsc64.asm | ||
2 | ; | ||
3 | ; unsigned _int64 myrdtsc(); | ||
4 | ; | ||
5 | ; return the performance rdtsc value, on AMD64/Intel EM64T | ||
6 | ; | ||
7 | ; compile with : | ||
8 | ; ml64.exe" /Flrdtsc64 /c /Zi rdtsc64.asm | ||
9 | ; | ||
10 | .code | ||
11 | myrdtsc PROC | ||
12 | rdtsc | ||
13 | shl rdx,32 | ||
14 | or rax,rdx | ||
15 | ret | ||
16 | myrdtsc ENDP | ||
17 | |||
18 | END | ||
diff --git a/contrib/testzlib/rdtsc64.obj b/contrib/testzlib/rdtsc64.obj new file mode 100644 index 0000000..7905142 --- /dev/null +++ b/contrib/testzlib/rdtsc64.obj | |||
Binary files differ | |||
diff --git a/contrib/testzlib/testzlib.c b/contrib/testzlib/testzlib.c index fdabc5c..6c3ff9f 100644 --- a/contrib/testzlib/testzlib.c +++ b/contrib/testzlib/testzlib.c | |||
@@ -1,149 +1,258 @@ | |||
1 | 1 | ||
2 | #include <stdio.h> | 2 | #include <stdio.h> |
3 | #include <stdlib.h> | 3 | #include <stdlib.h> |
4 | #include <windows.h> | 4 | #include <windows.h> |
5 | #include "zlib.h" | 5 | #include "zlib.h" |
6 | 6 | ||
7 | int ReadFileMemory(const char* filename,long* plFileSize,void** pFilePtr) | 7 | |
8 | { | 8 | void MyDoMinus64(LARGE_INTEGER *R,LARGE_INTEGER A,LARGE_INTEGER B) |
9 | FILE* stream; | 9 | { |
10 | void* ptr; | 10 | R->HighPart = A.HighPart - B.HighPart; |
11 | int retVal=1; | 11 | if (A.LowPart >= B.LowPart) |
12 | stream=fopen(filename, "rb"); | 12 | R->LowPart = A.LowPart - B.LowPart; |
13 | if (stream==NULL) | 13 | else |
14 | return 0; | 14 | { |
15 | 15 | R->LowPart = A.LowPart - B.LowPart; | |
16 | fseek(stream,0,SEEK_END); | 16 | R->HighPart --; |
17 | 17 | } | |
18 | *plFileSize=ftell(stream); | 18 | } |
19 | fseek(stream,0,SEEK_SET); | 19 | |
20 | ptr=malloc((*plFileSize)+1); | 20 | #ifdef _AMD64_ |
21 | if (ptr==NULL) | 21 | unsigned _int64 myrdtsc(); |
22 | retVal=0; | 22 | void BeginCountRdtsc(LARGE_INTEGER * pbeginTime64) |
23 | else | 23 | { |
24 | { | 24 | // printf("rdtsc = %I64x\n",myrdtsc()); |
25 | if (fread(ptr, 1, *plFileSize,stream) != (*plFileSize)) | 25 | pbeginTime64->QuadPart=myrdtsc(); |
26 | retVal=0; | 26 | } |
27 | } | 27 | |
28 | fclose(stream); | 28 | LARGE_INTEGER GetResRdtsc(LARGE_INTEGER beginTime64,BOOL fComputeTimeQueryPerf) |
29 | *pFilePtr=ptr; | 29 | { |
30 | return retVal; | 30 | LARGE_INTEGER LIres; |
31 | } | 31 | unsigned _int64 res=myrdtsc()-((unsigned _int64)(beginTime64.QuadPart)); |
32 | 32 | LIres.QuadPart=res; | |
33 | int main(int argc, char *argv[]) | 33 | // printf("rdtsc = %I64x\n",myrdtsc()); |
34 | { | 34 | return LIres; |
35 | int BlockSizeCompress=0x8000; | 35 | } |
36 | int BlockSizeUncompress=0x8000; | 36 | #else |
37 | int cprLevel=Z_DEFAULT_COMPRESSION ; | 37 | void myGetRDTSC32(LARGE_INTEGER * pbeginTime64) |
38 | long lFileSize; | 38 | { |
39 | unsigned char* FilePtr; | 39 | DWORD dwEdx,dwEax; |
40 | long lBufferSizeCpr; | 40 | _asm |
41 | long lBufferSizeUncpr; | 41 | { |
42 | long lCompressedSize=0; | 42 | rdtsc |
43 | unsigned char* CprPtr; | 43 | mov dwEax,eax |
44 | unsigned char* UncprPtr; | 44 | mov dwEdx,edx |
45 | long lSizeCpr,lSizeUncpr; | 45 | } |
46 | DWORD dwGetTick; | 46 | pbeginTime64->LowPart=dwEax; |
47 | 47 | pbeginTime64->HighPart=dwEdx; | |
48 | if (argc<=1) | 48 | } |
49 | { | 49 | |
50 | printf("run TestZlib <File> [BlockSizeCompress] [BlockSizeUncompress] [compres. level]\n"); | 50 | void BeginCountRdtsc(LARGE_INTEGER * pbeginTime64) |
51 | return 0; | 51 | { |
52 | } | 52 | myGetRDTSC32(pbeginTime64); |
53 | 53 | } | |
54 | if (ReadFileMemory(argv[1],&lFileSize,&FilePtr)==0) | 54 | |
55 | { | 55 | LARGE_INTEGER GetResRdtsc(LARGE_INTEGER beginTime64,BOOL fComputeTimeQueryPerf) |
56 | printf("error reading %s\n",argv[1]); | 56 | { |
57 | return 1; | 57 | LARGE_INTEGER LIres,endTime64; |
58 | } | 58 | myGetRDTSC32(&endTime64); |
59 | else printf("file %s read, %u bytes\n",argv[1],lFileSize); | 59 | |
60 | 60 | LIres.LowPart=LIres.HighPart=0; | |
61 | if (argc>=3) | 61 | MyDoMinus64(&LIres,endTime64,beginTime64); |
62 | BlockSizeCompress=atol(argv[2]); | 62 | return LIres; |
63 | 63 | } | |
64 | if (argc>=4) | 64 | #endif |
65 | BlockSizeUncompress=atol(argv[3]); | 65 | |
66 | 66 | ||
67 | if (argc>=5) | 67 | void BeginCountPerfCounter(LARGE_INTEGER * pbeginTime64,BOOL fComputeTimeQueryPerf) |
68 | cprLevel=(int)atol(argv[4]); | 68 | { |
69 | 69 | if ((!fComputeTimeQueryPerf) || (!QueryPerformanceCounter(pbeginTime64))) | |
70 | lBufferSizeCpr = lFileSize + (lFileSize/0x10) + 0x200; | 70 | { |
71 | lBufferSizeUncpr = lBufferSizeCpr; | 71 | pbeginTime64->LowPart = GetTickCount(); |
72 | 72 | pbeginTime64->HighPart = 0; | |
73 | CprPtr=(unsigned char*)malloc(lBufferSizeCpr + BlockSizeCompress); | 73 | } |
74 | UncprPtr=(unsigned char*)malloc(lBufferSizeUncpr + BlockSizeUncompress); | 74 | } |
75 | 75 | ||
76 | dwGetTick=GetTickCount(); | 76 | DWORD GetMsecSincePerfCounter(LARGE_INTEGER beginTime64,BOOL fComputeTimeQueryPerf) |
77 | { | 77 | { |
78 | z_stream zcpr; | 78 | LARGE_INTEGER endTime64,ticksPerSecond,ticks; |
79 | int ret=Z_OK; | 79 | DWORDLONG ticksShifted,tickSecShifted; |
80 | long lOrigToDo = lFileSize; | 80 | DWORD dwLog=16+0; |
81 | long lOrigDone = 0; | 81 | DWORD dwRet; |
82 | int step=0; | 82 | if ((!fComputeTimeQueryPerf) || (!QueryPerformanceCounter(&endTime64))) |
83 | memset(&zcpr,0,sizeof(z_stream)); | 83 | dwRet = (GetTickCount() - beginTime64.LowPart)*1; |
84 | deflateInit(&zcpr,cprLevel); | 84 | else |
85 | 85 | { | |
86 | zcpr.next_in = FilePtr; | 86 | MyDoMinus64(&ticks,endTime64,beginTime64); |
87 | zcpr.next_out = CprPtr; | 87 | QueryPerformanceFrequency(&ticksPerSecond); |
88 | 88 | ||
89 | 89 | ||
90 | do | 90 | { |
91 | { | 91 | ticksShifted = Int64ShrlMod32(*(DWORDLONG*)&ticks,dwLog); |
92 | long all_read_before = zcpr.total_in; | 92 | tickSecShifted = Int64ShrlMod32(*(DWORDLONG*)&ticksPerSecond,dwLog); |
93 | zcpr.avail_in = min(lOrigToDo,BlockSizeCompress); | 93 | |
94 | zcpr.avail_out = BlockSizeCompress; | 94 | } |
95 | ret=deflate(&zcpr,(zcpr.avail_in==lOrigToDo) ? Z_FINISH : Z_SYNC_FLUSH); | 95 | |
96 | lOrigDone += (zcpr.total_in-all_read_before); | 96 | dwRet = (DWORD)((((DWORD)ticksShifted)*1000)/(DWORD)(tickSecShifted)); |
97 | lOrigToDo -= (zcpr.total_in-all_read_before); | 97 | dwRet *=1; |
98 | step++; | 98 | } |
99 | } while (ret==Z_OK); | 99 | return dwRet; |
100 | 100 | } | |
101 | lSizeCpr=zcpr.total_out; | 101 | |
102 | deflateEnd(&zcpr); | 102 | int ReadFileMemory(const char* filename,long* plFileSize,void** pFilePtr) |
103 | dwGetTick=GetTickCount()-dwGetTick; | 103 | { |
104 | printf("total compress size = %u, in %u step\n",lSizeCpr,step); | 104 | FILE* stream; |
105 | printf("time = %u msec = %f sec\n\n",dwGetTick,dwGetTick/(double)1000.); | 105 | void* ptr; |
106 | } | 106 | int retVal=1; |
107 | 107 | stream=fopen(filename, "rb"); | |
108 | dwGetTick=GetTickCount(); | 108 | if (stream==NULL) |
109 | { | 109 | return 0; |
110 | z_stream zcpr; | 110 | |
111 | int ret=Z_OK; | 111 | fseek(stream,0,SEEK_END); |
112 | long lOrigToDo = lSizeCpr; | 112 | |
113 | long lOrigDone = 0; | 113 | *plFileSize=ftell(stream); |
114 | int step=0; | 114 | fseek(stream,0,SEEK_SET); |
115 | memset(&zcpr,0,sizeof(z_stream)); | 115 | ptr=malloc((*plFileSize)+1); |
116 | inflateInit(&zcpr); | 116 | if (ptr==NULL) |
117 | 117 | retVal=0; | |
118 | zcpr.next_in = CprPtr; | 118 | else |
119 | zcpr.next_out = UncprPtr; | 119 | { |
120 | 120 | if (fread(ptr, 1, *plFileSize,stream) != (*plFileSize)) | |
121 | 121 | retVal=0; | |
122 | do | 122 | } |
123 | { | 123 | fclose(stream); |
124 | long all_read_before = zcpr.total_in; | 124 | *pFilePtr=ptr; |
125 | zcpr.avail_in = min(lOrigToDo,BlockSizeUncompress); | 125 | return retVal; |
126 | zcpr.avail_out = BlockSizeUncompress; | 126 | } |
127 | ret=inflate(&zcpr,Z_SYNC_FLUSH); | 127 | |
128 | lOrigDone += (zcpr.total_in-all_read_before); | 128 | int main(int argc, char *argv[]) |
129 | lOrigToDo -= (zcpr.total_in-all_read_before); | 129 | { |
130 | step++; | 130 | int BlockSizeCompress=0x8000; |
131 | } while (ret==Z_OK); | 131 | int BlockSizeUncompress=0x8000; |
132 | 132 | int cprLevel=Z_DEFAULT_COMPRESSION ; | |
133 | lSizeUncpr=zcpr.total_out; | 133 | long lFileSize; |
134 | inflateEnd(&zcpr); | 134 | unsigned char* FilePtr; |
135 | dwGetTick=GetTickCount()-dwGetTick; | 135 | long lBufferSizeCpr; |
136 | printf("total uncompress size = %u, in %u step\n",lSizeUncpr,step); | 136 | long lBufferSizeUncpr; |
137 | printf("time = %u msec = %f sec\n\n",dwGetTick,dwGetTick/(double)1000.); | 137 | long lCompressedSize=0; |
138 | } | 138 | unsigned char* CprPtr; |
139 | 139 | unsigned char* UncprPtr; | |
140 | if (lSizeUncpr==lFileSize) | 140 | long lSizeCpr,lSizeUncpr; |
141 | { | 141 | DWORD dwGetTick,dwMsecQP; |
142 | if (memcmp(FilePtr,UncprPtr,lFileSize)==0) | 142 | LARGE_INTEGER li_qp,li_rdtsc,dwResRdtsc; |
143 | printf("compare ok\n"); | 143 | |
144 | 144 | if (argc<=1) | |
145 | } | 145 | { |
146 | 146 | printf("run TestZlib <File> [BlockSizeCompress] [BlockSizeUncompress] [compres. level]\n"); | |
147 | return 0; | 147 | return 0; |
148 | 148 | } | |
149 | } | 149 | |
150 | if (ReadFileMemory(argv[1],&lFileSize,&FilePtr)==0) | ||
151 | { | ||
152 | printf("error reading %s\n",argv[1]); | ||
153 | return 1; | ||
154 | } | ||
155 | else printf("file %s read, %u bytes\n",argv[1],lFileSize); | ||
156 | |||
157 | if (argc>=3) | ||
158 | BlockSizeCompress=atol(argv[2]); | ||
159 | |||
160 | if (argc>=4) | ||
161 | BlockSizeUncompress=atol(argv[3]); | ||
162 | |||
163 | if (argc>=5) | ||
164 | cprLevel=(int)atol(argv[4]); | ||
165 | |||
166 | lBufferSizeCpr = lFileSize + (lFileSize/0x10) + 0x200; | ||
167 | lBufferSizeUncpr = lBufferSizeCpr; | ||
168 | |||
169 | CprPtr=(unsigned char*)malloc(lBufferSizeCpr + BlockSizeCompress); | ||
170 | |||
171 | BeginCountPerfCounter(&li_qp,TRUE); | ||
172 | dwGetTick=GetTickCount(); | ||
173 | BeginCountRdtsc(&li_rdtsc); | ||
174 | { | ||
175 | z_stream zcpr; | ||
176 | int ret=Z_OK; | ||
177 | long lOrigToDo = lFileSize; | ||
178 | long lOrigDone = 0; | ||
179 | int step=0; | ||
180 | memset(&zcpr,0,sizeof(z_stream)); | ||
181 | deflateInit(&zcpr,cprLevel); | ||
182 | |||
183 | zcpr.next_in = FilePtr; | ||
184 | zcpr.next_out = CprPtr; | ||
185 | |||
186 | |||
187 | do | ||
188 | { | ||
189 | long all_read_before = zcpr.total_in; | ||
190 | zcpr.avail_in = min(lOrigToDo,BlockSizeCompress); | ||
191 | zcpr.avail_out = BlockSizeCompress; | ||
192 | ret=deflate(&zcpr,(zcpr.avail_in==lOrigToDo) ? Z_FINISH : Z_SYNC_FLUSH); | ||
193 | lOrigDone += (zcpr.total_in-all_read_before); | ||
194 | lOrigToDo -= (zcpr.total_in-all_read_before); | ||
195 | step++; | ||
196 | } while (ret==Z_OK); | ||
197 | |||
198 | lSizeCpr=zcpr.total_out; | ||
199 | deflateEnd(&zcpr); | ||
200 | dwGetTick=GetTickCount()-dwGetTick; | ||
201 | dwMsecQP=GetMsecSincePerfCounter(li_qp,TRUE); | ||
202 | dwResRdtsc=GetResRdtsc(li_rdtsc,TRUE); | ||
203 | printf("total compress size = %u, in %u step\n",lSizeCpr,step); | ||
204 | printf("time = %u msec = %f sec\n",dwGetTick,dwGetTick/(double)1000.); | ||
205 | printf("defcpr time QP = %u msec = %f sec\n",dwMsecQP,dwMsecQP/(double)1000.); | ||
206 | printf("defcpr result rdtsc = %I64x\n\n",dwResRdtsc.QuadPart); | ||
207 | } | ||
208 | |||
209 | CprPtr=(unsigned char*)realloc(CprPtr,lSizeCpr); | ||
210 | UncprPtr=(unsigned char*)malloc(lBufferSizeUncpr + BlockSizeUncompress); | ||
211 | |||
212 | BeginCountPerfCounter(&li_qp,TRUE); | ||
213 | dwGetTick=GetTickCount(); | ||
214 | BeginCountRdtsc(&li_rdtsc); | ||
215 | { | ||
216 | z_stream zcpr; | ||
217 | int ret=Z_OK; | ||
218 | long lOrigToDo = lSizeCpr; | ||
219 | long lOrigDone = 0; | ||
220 | int step=0; | ||
221 | memset(&zcpr,0,sizeof(z_stream)); | ||
222 | inflateInit(&zcpr); | ||
223 | |||
224 | zcpr.next_in = CprPtr; | ||
225 | zcpr.next_out = UncprPtr; | ||
226 | |||
227 | |||
228 | do | ||
229 | { | ||
230 | long all_read_before = zcpr.total_in; | ||
231 | zcpr.avail_in = min(lOrigToDo,BlockSizeUncompress); | ||
232 | zcpr.avail_out = BlockSizeUncompress; | ||
233 | ret=inflate(&zcpr,Z_SYNC_FLUSH); | ||
234 | lOrigDone += (zcpr.total_in-all_read_before); | ||
235 | lOrigToDo -= (zcpr.total_in-all_read_before); | ||
236 | step++; | ||
237 | } while (ret==Z_OK); | ||
238 | |||
239 | lSizeUncpr=zcpr.total_out; | ||
240 | inflateEnd(&zcpr); | ||
241 | dwGetTick=GetTickCount()-dwGetTick; | ||
242 | dwMsecQP=GetMsecSincePerfCounter(li_qp,TRUE); | ||
243 | dwResRdtsc=GetResRdtsc(li_rdtsc,TRUE); | ||
244 | printf("total uncompress size = %u, in %u step\n",lSizeUncpr,step); | ||
245 | printf("time = %u msec = %f sec\n",dwGetTick,dwGetTick/(double)1000.); | ||
246 | printf("uncpr time QP = %u msec = %f sec\n",dwMsecQP,dwMsecQP/(double)1000.); | ||
247 | printf("uncpr result rdtsc = %I64x\n\n",dwResRdtsc.QuadPart); | ||
248 | } | ||
249 | |||
250 | if (lSizeUncpr==lFileSize) | ||
251 | { | ||
252 | if (memcmp(FilePtr,UncprPtr,lFileSize)==0) | ||
253 | printf("compare ok\n"); | ||
254 | |||
255 | } | ||
256 | |||
257 | return 0; | ||
258 | } | ||
diff --git a/contrib/testzlib/testzlib.txt b/contrib/testzlib/testzlib.txt new file mode 100644 index 0000000..62258f1 --- /dev/null +++ b/contrib/testzlib/testzlib.txt | |||
@@ -0,0 +1,10 @@ | |||
1 | To build testzLib with Visual Studio 2005: | ||
2 | |||
3 | copy to a directory file from : | ||
4 | - root of zLib tree | ||
5 | - contrib/testzlib | ||
6 | - contrib/masmx86 | ||
7 | - contrib/masmx64 | ||
8 | - contrib/vstudio/vc7 | ||
9 | |||
10 | and open testzlib8.sln \ No newline at end of file | ||
diff --git a/contrib/testzlib/testzlib8.sln b/contrib/testzlib/testzlib8.sln new file mode 100644 index 0000000..794f72d --- /dev/null +++ b/contrib/testzlib/testzlib8.sln | |||
@@ -0,0 +1,32 @@ | |||
1 |  | ||
2 | Microsoft Visual Studio Solution File, Format Version 9.00 | ||
3 | # Visual Studio 2005 | ||
4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testzlib8", "testzlib8.vcproj", "{AA6666AA-E09F-4135-9C0C-4FE50C3C654B}" | ||
5 | EndProject | ||
6 | Global | ||
7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
8 | Debug|Win32 = Debug|Win32 | ||
9 | Debug|Win64 (AMD64) = Debug|Win64 (AMD64) | ||
10 | Release|Win32 = Release|Win32 | ||
11 | Release|Win64 (AMD64) = Release|Win64 (AMD64) | ||
12 | ReleaseAsm|Win32 = ReleaseAsm|Win32 | ||
13 | ReleaseAsm|Win64 (AMD64) = ReleaseAsm|Win64 (AMD64) | ||
14 | EndGlobalSection | ||
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
16 | {AA6666AA-E09F-4135-9C0C-4FE50C3C654B}.Debug|Win32.ActiveCfg = Debug|Win32 | ||
17 | {AA6666AA-E09F-4135-9C0C-4FE50C3C654B}.Debug|Win32.Build.0 = Debug|Win32 | ||
18 | {AA6666AA-E09F-4135-9C0C-4FE50C3C654B}.Debug|Win64 (AMD64).ActiveCfg = Debug|Win64 (AMD64) | ||
19 | {AA6666AA-E09F-4135-9C0C-4FE50C3C654B}.Debug|Win64 (AMD64).Build.0 = Debug|Win64 (AMD64) | ||
20 | {AA6666AA-E09F-4135-9C0C-4FE50C3C654B}.Release|Win32.ActiveCfg = Release|Win32 | ||
21 | {AA6666AA-E09F-4135-9C0C-4FE50C3C654B}.Release|Win32.Build.0 = Release|Win32 | ||
22 | {AA6666AA-E09F-4135-9C0C-4FE50C3C654B}.Release|Win64 (AMD64).ActiveCfg = Release|Win64 (AMD64) | ||
23 | {AA6666AA-E09F-4135-9C0C-4FE50C3C654B}.Release|Win64 (AMD64).Build.0 = Release|Win64 (AMD64) | ||
24 | {AA6666AA-E09F-4135-9C0C-4FE50C3C654B}.ReleaseAsm|Win32.ActiveCfg = ReleaseAsm|Win32 | ||
25 | {AA6666AA-E09F-4135-9C0C-4FE50C3C654B}.ReleaseAsm|Win32.Build.0 = ReleaseAsm|Win32 | ||
26 | {AA6666AA-E09F-4135-9C0C-4FE50C3C654B}.ReleaseAsm|Win64 (AMD64).ActiveCfg = ReleaseAsm|Win64 (AMD64) | ||
27 | {AA6666AA-E09F-4135-9C0C-4FE50C3C654B}.ReleaseAsm|Win64 (AMD64).Build.0 = ReleaseAsm|Win64 (AMD64) | ||
28 | EndGlobalSection | ||
29 | GlobalSection(SolutionProperties) = preSolution | ||
30 | HideSolutionNode = FALSE | ||
31 | EndGlobalSection | ||
32 | EndGlobal | ||
diff --git a/contrib/testzlib/testzlib8.vcproj b/contrib/testzlib/testzlib8.vcproj new file mode 100644 index 0000000..3cab776 --- /dev/null +++ b/contrib/testzlib/testzlib8.vcproj | |||
@@ -0,0 +1,638 @@ | |||
1 | <?xml version="1.0" encoding="Windows-1252"?> | ||
2 | <VisualStudioProject | ||
3 | ProjectType="Visual C++" | ||
4 | Version="8,00" | ||
5 | Name="testzlib8" | ||
6 | ProjectGUID="{AA6666AA-E09F-4135-9C0C-4FE50C3C654B}" | ||
7 | Keyword="Win32Proj" | ||
8 | > | ||
9 | <Platforms> | ||
10 | <Platform | ||
11 | Name="Win32" | ||
12 | /> | ||
13 | <Platform | ||
14 | Name="Win64 (AMD64)" | ||
15 | /> | ||
16 | </Platforms> | ||
17 | <ToolFiles> | ||
18 | <DefaultToolFile | ||
19 | FileName="masm.tool" | ||
20 | /> | ||
21 | </ToolFiles> | ||
22 | <Configurations> | ||
23 | <Configuration | ||
24 | Name="Debug|Win32" | ||
25 | OutputDirectory="x86\$(ConfigurationName)" | ||
26 | IntermediateDirectory="x86\$(ConfigurationName)" | ||
27 | ConfigurationType="1" | ||
28 | CharacterSet="2" | ||
29 | > | ||
30 | <Tool | ||
31 | Name="VCPreBuildEventTool" | ||
32 | /> | ||
33 | <Tool | ||
34 | Name="VCCustomBuildTool" | ||
35 | /> | ||
36 | <Tool | ||
37 | Name="MASM" | ||
38 | /> | ||
39 | <Tool | ||
40 | Name="VCXMLDataGeneratorTool" | ||
41 | /> | ||
42 | <Tool | ||
43 | Name="VCWebServiceProxyGeneratorTool" | ||
44 | /> | ||
45 | <Tool | ||
46 | Name="VCMIDLTool" | ||
47 | /> | ||
48 | <Tool | ||
49 | Name="VCCLCompilerTool" | ||
50 | Optimization="0" | ||
51 | PreprocessorDefinitions="ASMV;ASMINF;WIN32;ZLIB_WINAPI;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE" | ||
52 | MinimalRebuild="TRUE" | ||
53 | BasicRuntimeChecks="3" | ||
54 | RuntimeLibrary="1" | ||
55 | UsePrecompiledHeader="0" | ||
56 | AssemblerOutput="4" | ||
57 | WarningLevel="3" | ||
58 | Detect64BitPortabilityProblems="TRUE" | ||
59 | DebugInformationFormat="4" | ||
60 | /> | ||
61 | <Tool | ||
62 | Name="VCManagedResourceCompilerTool" | ||
63 | /> | ||
64 | <Tool | ||
65 | Name="VCResourceCompilerTool" | ||
66 | /> | ||
67 | <Tool | ||
68 | Name="VCPreLinkEventTool" | ||
69 | /> | ||
70 | <Tool | ||
71 | Name="VCLinkerTool" | ||
72 | AdditionalDependencies="gvmat32.obj inffas32.obj" | ||
73 | OutputFile="$(OutDir)/testzlib.exe" | ||
74 | LinkIncremental="2" | ||
75 | GenerateDebugInformation="TRUE" | ||
76 | ProgramDatabaseFile="$(OutDir)/testzlib.pdb" | ||
77 | SubSystem="1" | ||
78 | TargetMachine="1" | ||
79 | /> | ||
80 | <Tool | ||
81 | Name="VCALinkTool" | ||
82 | /> | ||
83 | <Tool | ||
84 | Name="VCManifestTool" | ||
85 | /> | ||
86 | <Tool | ||
87 | Name="VCXDCMakeTool" | ||
88 | /> | ||
89 | <Tool | ||
90 | Name="VCBscMakeTool" | ||
91 | /> | ||
92 | <Tool | ||
93 | Name="VCAppVerifierTool" | ||
94 | /> | ||
95 | <Tool | ||
96 | Name="VCWebDeploymentTool" | ||
97 | /> | ||
98 | <Tool | ||
99 | Name="VCPostBuildEventTool" | ||
100 | /> | ||
101 | </Configuration> | ||
102 | <Configuration | ||
103 | Name="Debug|Win64 (AMD64)" | ||
104 | OutputDirectory="amd64\$(ConfigurationName)" | ||
105 | IntermediateDirectory="amd64\$(ConfigurationName)" | ||
106 | ConfigurationType="1" | ||
107 | CharacterSet="2" | ||
108 | > | ||
109 | <Tool | ||
110 | Name="VCPreBuildEventTool" | ||
111 | /> | ||
112 | <Tool | ||
113 | Name="VCCustomBuildTool" | ||
114 | /> | ||
115 | <Tool | ||
116 | Name="MASM" | ||
117 | /> | ||
118 | <Tool | ||
119 | Name="VCXMLDataGeneratorTool" | ||
120 | /> | ||
121 | <Tool | ||
122 | Name="VCWebServiceProxyGeneratorTool" | ||
123 | /> | ||
124 | <Tool | ||
125 | Name="VCMIDLTool" | ||
126 | TargetEnvironment="3" | ||
127 | /> | ||
128 | <Tool | ||
129 | Name="VCCLCompilerTool" | ||
130 | Optimization="0" | ||
131 | PreprocessorDefinitions="ASMV;ASMINF;WIN32;ZLIB_WINAPI;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE" | ||
132 | MinimalRebuild="TRUE" | ||
133 | BasicRuntimeChecks="3" | ||
134 | RuntimeLibrary="1" | ||
135 | UsePrecompiledHeader="0" | ||
136 | AssemblerOutput="4" | ||
137 | WarningLevel="3" | ||
138 | Detect64BitPortabilityProblems="TRUE" | ||
139 | DebugInformationFormat="3" | ||
140 | /> | ||
141 | <Tool | ||
142 | Name="VCManagedResourceCompilerTool" | ||
143 | /> | ||
144 | <Tool | ||
145 | Name="VCResourceCompilerTool" | ||
146 | /> | ||
147 | <Tool | ||
148 | Name="VCPreLinkEventTool" | ||
149 | CommandLine="" | ||
150 | /> | ||
151 | <Tool | ||
152 | Name="VCLinkerTool" | ||
153 | AdditionalDependencies="gvmat64.obj inffasx64.obj rdtsc64.obj" | ||
154 | OutputFile="$(OutDir)/testzlib.exe" | ||
155 | LinkIncremental="2" | ||
156 | GenerateDebugInformation="TRUE" | ||
157 | ProgramDatabaseFile="$(OutDir)/testzlib.pdb" | ||
158 | SubSystem="1" | ||
159 | TargetMachine="17" | ||
160 | /> | ||
161 | <Tool | ||
162 | Name="VCALinkTool" | ||
163 | /> | ||
164 | <Tool | ||
165 | Name="VCManifestTool" | ||
166 | /> | ||
167 | <Tool | ||
168 | Name="VCXDCMakeTool" | ||
169 | /> | ||
170 | <Tool | ||
171 | Name="VCBscMakeTool" | ||
172 | /> | ||
173 | <Tool | ||
174 | Name="VCWebDeploymentTool" | ||
175 | /> | ||
176 | <Tool | ||
177 | Name="VCPostBuildEventTool" | ||
178 | /> | ||
179 | </Configuration> | ||
180 | <Configuration | ||
181 | Name="Release|Win32" | ||
182 | OutputDirectory="x86\$(ConfigurationName)" | ||
183 | IntermediateDirectory="x86\$(ConfigurationName)" | ||
184 | ConfigurationType="1" | ||
185 | CharacterSet="2" | ||
186 | > | ||
187 | <Tool | ||
188 | Name="VCPreBuildEventTool" | ||
189 | /> | ||
190 | <Tool | ||
191 | Name="VCCustomBuildTool" | ||
192 | /> | ||
193 | <Tool | ||
194 | Name="MASM" | ||
195 | /> | ||
196 | <Tool | ||
197 | Name="VCXMLDataGeneratorTool" | ||
198 | /> | ||
199 | <Tool | ||
200 | Name="VCWebServiceProxyGeneratorTool" | ||
201 | /> | ||
202 | <Tool | ||
203 | Name="VCMIDLTool" | ||
204 | /> | ||
205 | <Tool | ||
206 | Name="VCCLCompilerTool" | ||
207 | Optimization="2" | ||
208 | InlineFunctionExpansion="1" | ||
209 | OmitFramePointers="TRUE" | ||
210 | PreprocessorDefinitions="WIN32;ZLIB_WINAPI;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE" | ||
211 | StringPooling="TRUE" | ||
212 | RuntimeLibrary="0" | ||
213 | EnableFunctionLevelLinking="TRUE" | ||
214 | UsePrecompiledHeader="0" | ||
215 | WarningLevel="3" | ||
216 | Detect64BitPortabilityProblems="TRUE" | ||
217 | DebugInformationFormat="3" | ||
218 | /> | ||
219 | <Tool | ||
220 | Name="VCManagedResourceCompilerTool" | ||
221 | /> | ||
222 | <Tool | ||
223 | Name="VCResourceCompilerTool" | ||
224 | /> | ||
225 | <Tool | ||
226 | Name="VCPreLinkEventTool" | ||
227 | /> | ||
228 | <Tool | ||
229 | Name="VCLinkerTool" | ||
230 | OutputFile="$(OutDir)/testzlib.exe" | ||
231 | LinkIncremental="1" | ||
232 | GenerateDebugInformation="TRUE" | ||
233 | SubSystem="1" | ||
234 | OptimizeReferences="2" | ||
235 | EnableCOMDATFolding="2" | ||
236 | OptimizeForWindows98="1" | ||
237 | TargetMachine="1" | ||
238 | /> | ||
239 | <Tool | ||
240 | Name="VCALinkTool" | ||
241 | /> | ||
242 | <Tool | ||
243 | Name="VCManifestTool" | ||
244 | /> | ||
245 | <Tool | ||
246 | Name="VCXDCMakeTool" | ||
247 | /> | ||
248 | <Tool | ||
249 | Name="VCBscMakeTool" | ||
250 | /> | ||
251 | <Tool | ||
252 | Name="VCAppVerifierTool" | ||
253 | /> | ||
254 | <Tool | ||
255 | Name="VCWebDeploymentTool" | ||
256 | /> | ||
257 | <Tool | ||
258 | Name="VCPostBuildEventTool" | ||
259 | /> | ||
260 | </Configuration> | ||
261 | <Configuration | ||
262 | Name="Release|Win64 (AMD64)" | ||
263 | OutputDirectory="amd64\$(ConfigurationName)" | ||
264 | IntermediateDirectory="amd64\$(ConfigurationName)" | ||
265 | ConfigurationType="1" | ||
266 | CharacterSet="2" | ||
267 | > | ||
268 | <Tool | ||
269 | Name="VCPreBuildEventTool" | ||
270 | /> | ||
271 | <Tool | ||
272 | Name="VCCustomBuildTool" | ||
273 | /> | ||
274 | <Tool | ||
275 | Name="MASM" | ||
276 | /> | ||
277 | <Tool | ||
278 | Name="VCXMLDataGeneratorTool" | ||
279 | /> | ||
280 | <Tool | ||
281 | Name="VCWebServiceProxyGeneratorTool" | ||
282 | /> | ||
283 | <Tool | ||
284 | Name="VCMIDLTool" | ||
285 | TargetEnvironment="3" | ||
286 | /> | ||
287 | <Tool | ||
288 | Name="VCCLCompilerTool" | ||
289 | Optimization="2" | ||
290 | InlineFunctionExpansion="1" | ||
291 | OmitFramePointers="TRUE" | ||
292 | PreprocessorDefinitions="WIN32;ZLIB_WINAPI;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE" | ||
293 | StringPooling="TRUE" | ||
294 | RuntimeLibrary="0" | ||
295 | EnableFunctionLevelLinking="TRUE" | ||
296 | UsePrecompiledHeader="0" | ||
297 | WarningLevel="3" | ||
298 | Detect64BitPortabilityProblems="TRUE" | ||
299 | DebugInformationFormat="3" | ||
300 | /> | ||
301 | <Tool | ||
302 | Name="VCManagedResourceCompilerTool" | ||
303 | /> | ||
304 | <Tool | ||
305 | Name="VCResourceCompilerTool" | ||
306 | /> | ||
307 | <Tool | ||
308 | Name="VCPreLinkEventTool" | ||
309 | /> | ||
310 | <Tool | ||
311 | Name="VCLinkerTool" | ||
312 | AdditionalDependencies="rdtsc64.obj" | ||
313 | OutputFile="$(OutDir)/testzlib.exe" | ||
314 | LinkIncremental="1" | ||
315 | GenerateDebugInformation="TRUE" | ||
316 | SubSystem="1" | ||
317 | OptimizeReferences="2" | ||
318 | EnableCOMDATFolding="2" | ||
319 | OptimizeForWindows98="1" | ||
320 | TargetMachine="17" | ||
321 | /> | ||
322 | <Tool | ||
323 | Name="VCALinkTool" | ||
324 | /> | ||
325 | <Tool | ||
326 | Name="VCManifestTool" | ||
327 | /> | ||
328 | <Tool | ||
329 | Name="VCXDCMakeTool" | ||
330 | /> | ||
331 | <Tool | ||
332 | Name="VCBscMakeTool" | ||
333 | /> | ||
334 | <Tool | ||
335 | Name="VCWebDeploymentTool" | ||
336 | /> | ||
337 | <Tool | ||
338 | Name="VCPostBuildEventTool" | ||
339 | /> | ||
340 | </Configuration> | ||
341 | <Configuration | ||
342 | Name="ReleaseAsm|Win32" | ||
343 | OutputDirectory="x86\$(ConfigurationName)" | ||
344 | IntermediateDirectory="x86\$(ConfigurationName)" | ||
345 | ConfigurationType="1" | ||
346 | CharacterSet="2" | ||
347 | > | ||
348 | <Tool | ||
349 | Name="VCPreBuildEventTool" | ||
350 | /> | ||
351 | <Tool | ||
352 | Name="VCCustomBuildTool" | ||
353 | /> | ||
354 | <Tool | ||
355 | Name="MASM" | ||
356 | /> | ||
357 | <Tool | ||
358 | Name="VCXMLDataGeneratorTool" | ||
359 | /> | ||
360 | <Tool | ||
361 | Name="VCWebServiceProxyGeneratorTool" | ||
362 | /> | ||
363 | <Tool | ||
364 | Name="VCMIDLTool" | ||
365 | /> | ||
366 | <Tool | ||
367 | Name="VCCLCompilerTool" | ||
368 | Optimization="2" | ||
369 | InlineFunctionExpansion="1" | ||
370 | OmitFramePointers="TRUE" | ||
371 | PreprocessorDefinitions="ASMV;ASMINF;WIN32;ZLIB_WINAPI;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE" | ||
372 | StringPooling="TRUE" | ||
373 | RuntimeLibrary="0" | ||
374 | EnableFunctionLevelLinking="TRUE" | ||
375 | UsePrecompiledHeader="0" | ||
376 | WarningLevel="3" | ||
377 | Detect64BitPortabilityProblems="TRUE" | ||
378 | DebugInformationFormat="3" | ||
379 | /> | ||
380 | <Tool | ||
381 | Name="VCManagedResourceCompilerTool" | ||
382 | /> | ||
383 | <Tool | ||
384 | Name="VCResourceCompilerTool" | ||
385 | /> | ||
386 | <Tool | ||
387 | Name="VCPreLinkEventTool" | ||
388 | /> | ||
389 | <Tool | ||
390 | Name="VCLinkerTool" | ||
391 | AdditionalDependencies="gvmat32.obj inffas32.obj" | ||
392 | OutputFile="$(OutDir)/testzlib.exe" | ||
393 | LinkIncremental="1" | ||
394 | GenerateDebugInformation="TRUE" | ||
395 | SubSystem="1" | ||
396 | OptimizeReferences="2" | ||
397 | EnableCOMDATFolding="2" | ||
398 | OptimizeForWindows98="1" | ||
399 | TargetMachine="1" | ||
400 | /> | ||
401 | <Tool | ||
402 | Name="VCALinkTool" | ||
403 | /> | ||
404 | <Tool | ||
405 | Name="VCManifestTool" | ||
406 | /> | ||
407 | <Tool | ||
408 | Name="VCXDCMakeTool" | ||
409 | /> | ||
410 | <Tool | ||
411 | Name="VCBscMakeTool" | ||
412 | /> | ||
413 | <Tool | ||
414 | Name="VCAppVerifierTool" | ||
415 | /> | ||
416 | <Tool | ||
417 | Name="VCWebDeploymentTool" | ||
418 | /> | ||
419 | <Tool | ||
420 | Name="VCPostBuildEventTool" | ||
421 | /> | ||
422 | </Configuration> | ||
423 | <Configuration | ||
424 | Name="ReleaseAsm|Win64 (AMD64)" | ||
425 | OutputDirectory="amd64\$(ConfigurationName)" | ||
426 | IntermediateDirectory="amd64\$(ConfigurationName)" | ||
427 | ConfigurationType="1" | ||
428 | CharacterSet="2" | ||
429 | > | ||
430 | <Tool | ||
431 | Name="VCPreBuildEventTool" | ||
432 | CommandLine="" | ||
433 | /> | ||
434 | <Tool | ||
435 | Name="VCCustomBuildTool" | ||
436 | /> | ||
437 | <Tool | ||
438 | Name="MASM" | ||
439 | /> | ||
440 | <Tool | ||
441 | Name="VCXMLDataGeneratorTool" | ||
442 | /> | ||
443 | <Tool | ||
444 | Name="VCWebServiceProxyGeneratorTool" | ||
445 | /> | ||
446 | <Tool | ||
447 | Name="VCMIDLTool" | ||
448 | TargetEnvironment="3" | ||
449 | /> | ||
450 | <Tool | ||
451 | Name="VCCLCompilerTool" | ||
452 | Optimization="2" | ||
453 | InlineFunctionExpansion="1" | ||
454 | OmitFramePointers="TRUE" | ||
455 | PreprocessorDefinitions="ASMV;ASMINF;WIN32;ZLIB_WINAPI;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE" | ||
456 | StringPooling="TRUE" | ||
457 | RuntimeLibrary="0" | ||
458 | EnableFunctionLevelLinking="TRUE" | ||
459 | UsePrecompiledHeader="0" | ||
460 | AssemblerOutput="4" | ||
461 | WarningLevel="3" | ||
462 | Detect64BitPortabilityProblems="TRUE" | ||
463 | DebugInformationFormat="3" | ||
464 | /> | ||
465 | <Tool | ||
466 | Name="VCManagedResourceCompilerTool" | ||
467 | /> | ||
468 | <Tool | ||
469 | Name="VCResourceCompilerTool" | ||
470 | /> | ||
471 | <Tool | ||
472 | Name="VCPreLinkEventTool" | ||
473 | CommandLine="" | ||
474 | /> | ||
475 | <Tool | ||
476 | Name="VCLinkerTool" | ||
477 | AdditionalDependencies="gvmat64.obj inffasx64.obj rdtsc64.obj" | ||
478 | OutputFile="$(OutDir)/testzlib.exe" | ||
479 | LinkIncremental="1" | ||
480 | GenerateDebugInformation="TRUE" | ||
481 | SubSystem="1" | ||
482 | OptimizeReferences="2" | ||
483 | EnableCOMDATFolding="2" | ||
484 | OptimizeForWindows98="1" | ||
485 | TargetMachine="17" | ||
486 | /> | ||
487 | <Tool | ||
488 | Name="VCALinkTool" | ||
489 | /> | ||
490 | <Tool | ||
491 | Name="VCManifestTool" | ||
492 | /> | ||
493 | <Tool | ||
494 | Name="VCXDCMakeTool" | ||
495 | /> | ||
496 | <Tool | ||
497 | Name="VCBscMakeTool" | ||
498 | /> | ||
499 | <Tool | ||
500 | Name="VCWebDeploymentTool" | ||
501 | /> | ||
502 | <Tool | ||
503 | Name="VCPostBuildEventTool" | ||
504 | /> | ||
505 | </Configuration> | ||
506 | </Configurations> | ||
507 | <References> | ||
508 | </References> | ||
509 | <Files> | ||
510 | <Filter | ||
511 | Name="Source Files" | ||
512 | Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm" | ||
513 | > | ||
514 | <File | ||
515 | RelativePath=".\adler32.c" | ||
516 | > | ||
517 | </File> | ||
518 | <File | ||
519 | RelativePath=".\compress.c" | ||
520 | > | ||
521 | </File> | ||
522 | <File | ||
523 | RelativePath=".\crc32.c" | ||
524 | > | ||
525 | </File> | ||
526 | <File | ||
527 | RelativePath=".\deflate.c" | ||
528 | > | ||
529 | </File> | ||
530 | <File | ||
531 | RelativePath=".\gvmat32c.c" | ||
532 | > | ||
533 | <FileConfiguration | ||
534 | Name="Debug|Win64 (AMD64)" | ||
535 | ExcludedFromBuild="TRUE" | ||
536 | > | ||
537 | <Tool | ||
538 | Name="VCCLCompilerTool" | ||
539 | /> | ||
540 | </FileConfiguration> | ||
541 | <FileConfiguration | ||
542 | Name="Release|Win64 (AMD64)" | ||
543 | ExcludedFromBuild="TRUE" | ||
544 | > | ||
545 | <Tool | ||
546 | Name="VCCLCompilerTool" | ||
547 | /> | ||
548 | </FileConfiguration> | ||
549 | <FileConfiguration | ||
550 | Name="ReleaseAsm|Win32" | ||
551 | > | ||
552 | <Tool | ||
553 | Name="VCCLCompilerTool" | ||
554 | /> | ||
555 | </FileConfiguration> | ||
556 | <FileConfiguration | ||
557 | Name="ReleaseAsm|Win64 (AMD64)" | ||
558 | ExcludedFromBuild="TRUE" | ||
559 | > | ||
560 | <Tool | ||
561 | Name="VCCLCompilerTool" | ||
562 | /> | ||
563 | </FileConfiguration> | ||
564 | </File> | ||
565 | <File | ||
566 | RelativePath=".\infback.c" | ||
567 | > | ||
568 | </File> | ||
569 | <File | ||
570 | RelativePath=".\inffas8664.c" | ||
571 | > | ||
572 | <FileConfiguration | ||
573 | Name="Debug|Win32" | ||
574 | ExcludedFromBuild="TRUE" | ||
575 | > | ||
576 | <Tool | ||
577 | Name="VCCLCompilerTool" | ||
578 | /> | ||
579 | </FileConfiguration> | ||
580 | <FileConfiguration | ||
581 | Name="Release|Win32" | ||
582 | > | ||
583 | <Tool | ||
584 | Name="VCCLCompilerTool" | ||
585 | /> | ||
586 | </FileConfiguration> | ||
587 | <FileConfiguration | ||
588 | Name="ReleaseAsm|Win32" | ||
589 | ExcludedFromBuild="TRUE" | ||
590 | > | ||
591 | <Tool | ||
592 | Name="VCCLCompilerTool" | ||
593 | /> | ||
594 | </FileConfiguration> | ||
595 | </File> | ||
596 | <File | ||
597 | RelativePath=".\inffast.c" | ||
598 | > | ||
599 | </File> | ||
600 | <File | ||
601 | RelativePath=".\inflate.c" | ||
602 | > | ||
603 | </File> | ||
604 | <File | ||
605 | RelativePath=".\inftrees.c" | ||
606 | > | ||
607 | </File> | ||
608 | <File | ||
609 | RelativePath="testzlib.c" | ||
610 | > | ||
611 | </File> | ||
612 | <File | ||
613 | RelativePath=".\trees.c" | ||
614 | > | ||
615 | </File> | ||
616 | <File | ||
617 | RelativePath=".\uncompr.c" | ||
618 | > | ||
619 | </File> | ||
620 | <File | ||
621 | RelativePath=".\zutil.c" | ||
622 | > | ||
623 | </File> | ||
624 | </Filter> | ||
625 | <Filter | ||
626 | Name="Header Files" | ||
627 | Filter="h;hpp;hxx;hm;inl;inc" | ||
628 | > | ||
629 | </Filter> | ||
630 | <Filter | ||
631 | Name="Resource Files" | ||
632 | Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" | ||
633 | > | ||
634 | </Filter> | ||
635 | </Files> | ||
636 | <Globals> | ||
637 | </Globals> | ||
638 | </VisualStudioProject> | ||