mirror of
https://github.com/python/cpython
synced 2026-09-29 08:00:32 +03:00
When compiled with `USE_ZLIB_CRC32` defined (`configure` sets this on POSIX systems), `binascii.crc32(...)` failed to compute the correct value when the input data was >= 4GiB. Because the zlib crc32 API is limited to a 32-bit length. This lines it up with the `zlib.crc32(...)` implementation that doesn't have that flaw. **Performance:** This also adopts the same GIL releasing for larger inputs logic that `zlib.crc32` has, and causes the Windows build to always use zlib's crc32 instead of our slow C code as zlib is a required build dependency on Windows. |
||
|---|---|---|
| .. | ||
| _abc.c.h | ||
| _asynciomodule.c.h | ||
| _bisectmodule.c.h | ||
| _bz2module.c.h | ||
| _codecsmodule.c.h | ||
| _collectionsmodule.c.h | ||
| _contextvarsmodule.c.h | ||
| _cryptmodule.c.h | ||
| _curses_panel.c.h | ||
| _cursesmodule.c.h | ||
| _datetimemodule.c.h | ||
| _dbmmodule.c.h | ||
| _elementtree.c.h | ||
| _gdbmmodule.c.h | ||
| _hashopenssl.c.h | ||
| _heapqmodule.c.h | ||
| _localemodule.c.h | ||
| _lsprof.c.h | ||
| _lzmamodule.c.h | ||
| _opcode.c.h | ||
| _operator.c.h | ||
| _pickle.c.h | ||
| _queuemodule.c.h | ||
| _randommodule.c.h | ||
| _sre.c.h | ||
| _ssl.c.h | ||
| _statisticsmodule.c.h | ||
| _struct.c.h | ||
| _testmultiphase.c.h | ||
| _tkinter.c.h | ||
| _tracemalloc.c.h | ||
| _typingmodule.c.h | ||
| _weakref.c.h | ||
| _winapi.c.h | ||
| arraymodule.c.h | ||
| audioop.c.h | ||
| binascii.c.h | ||
| cmathmodule.c.h | ||
| fcntlmodule.c.h | ||
| gcmodule.c.h | ||
| grpmodule.c.h | ||
| itertoolsmodule.c.h | ||
| mathmodule.c.h | ||
| md5module.c.h | ||
| overlapped.c.h | ||
| posixmodule.c.h | ||
| pwdmodule.c.h | ||
| pyexpat.c.h | ||
| readline.c.h | ||
| resource.c.h | ||
| selectmodule.c.h | ||
| sha1module.c.h | ||
| sha256module.c.h | ||
| sha512module.c.h | ||
| signalmodule.c.h | ||
| spwdmodule.c.h | ||
| symtablemodule.c.h | ||
| termios.c.h | ||
| unicodedata.c.h | ||
| zlibmodule.c.h | ||