From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Library:Zlib" |
|---|
| claim | "zlibCompileFlags() returns build information: bits 0-1 sizeof(uInt), 2-3 sizeof(uLong), 4-5 sizeof(void*), 6-7 sizeof(z_off_t) (each 0 = 16, 1 = 32, 2 = 64 bits, 3 other), bit 8 ZLIB_DEBUG, 10 ZLIB_WINAPI, 12 BUILDFIXED, 13 DYNAMIC_CRC_TABLE, 16 NO_GZCOMPRESS, 17 NO_GZIP, 20 PKZIP_BUG_WORKAROUND, 21 FASTEST, 24-27 gzprintf variant. Bit 9 (ASMV/ASMINF) is documented in zlib.h but the code that sets it is commented out in zutil.c, so it is always 0 even in builds with assembly. Calling it on an unknown zlib DLL tells its ABI before you build structures for it." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Zlib" |
|---|
| observed_in | | "MinGW-w64 zlib1.dll 1.3.1: 0x65 (uInt 32, uLong 32, pointer 64, z off t 32 bits; no options)" |
|
|---|
|
|---|
| data | | function | "zlibCompileFlags" |
|---|
| effect | "returns a bit field of type sizes and compile options" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "zlibCompileFlags documentation; implementation zutil.c lines 31-120" |
|---|
| repo | "https://github.com/madler/zlib" |
|---|
| commit | "767c4c947852e143f582c85f14cf573411df1b35" |
|---|
| path | "zlib.h" |
|---|
| lines | "1216-1256" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "ctypes call into MinGW Win64 zlib1.dll 1.3.1 returns 0x65." |
|---|
|
| type | "source" |
|---|
| detail | "zlibCompileFlags: the '#if defined(ASMV) || defined(ASMINF) flags += 1 << 9' block sits inside a /* ... */ comment; all other bits are set as listed" |
|---|
| repo | "https://github.com/madler/zlib" |
|---|
| commit | "767c4c947852e143f582c85f14cf573411df1b35" |
|---|
| path | "zutil.c" |
|---|
| lines | "31-120" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "zlibCompileFlags bits" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T05:49:44.704Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:48:12.753Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read zutil.c zlibCompileFlags() in full at commit 767c4c9: bit layout and the commented-out ASMV/ASMINF block as claimed." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T07:17:55.514Z" |
|---|
| summary | "Bit 9 (ASM) is documented in zlib.h but never set: the code in zutil.c is commented out" |
|---|
| changed | |
|---|
|
|
|---|