Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ms VisualStudio - Assembler speedups on x64 #376

Closed
wants to merge 64 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
8266563
Ms VisualStudio - Assembler speedups on x64
Sep 3, 2018
b23f0fb
Change version number to 1.2.11.1.
madler Jan 16, 2017
6da9ebc
Cygwin does not have _wopen(), so do not create gzopen_w() there.
madler Jan 16, 2017
77d6af6
Permit a deflateParams() parameter change as soon as possible.
madler Jan 16, 2017
5acb571
Limit hash table inserts after switch from stored deflate.
madler Jan 21, 2017
4d5c35b
Fix bug when window full in deflate_stored().
madler Jan 21, 2017
6b76809
Fix CLEAR_HASH macro to be usable as a single statement.
madler Jan 23, 2017
cb0bcfe
Avoid a conversion error in gzseek when off_t type too small.
madler Feb 5, 2017
4cf78d8
Have Makefile return non-zero error code on test failure.
madler Feb 12, 2017
e61cc34
Avoid some conversion warnings in gzread.c and gzwrite.c.
madler Feb 12, 2017
3b15763
Update use of errno for newer Windows CE versions.
madler Feb 12, 2017
de11b3b
Small speedup to inflate [psumbera].
madler Feb 12, 2017
f318b48
Return an error if the gzputs string length can't fit in an int.
madler Feb 12, 2017
8b5818b
Add address checking in clang to -w option of configure.
madler Feb 19, 2017
ba6ec4a
Don't compute check value for raw inflate if asked to validate.
madler Mar 30, 2017
7960bbd
Handle case where inflateSync used when header never processed.
madler Apr 16, 2017
ba91706
Avoid the use of ptrdiff_t.
madler Jun 3, 2017
a9653fe
Avoid an undefined behavior of memcpy() in gzappend().
madler Oct 13, 2017
c53077c
Avoid undefined behaviors of memcpy() in gz*printf().
madler Oct 13, 2017
3f58e6c
Avoid an undefined behavior of memcpy() in _tr_stored_block().
madler Oct 13, 2017
149bbdb
Make the names in functions declarations identical to definitions.
madler Oct 13, 2017
f3f795e
Remove old assembler code in which bugs have manifested.
madler Oct 13, 2017
5113477
Fix deflateEnd() to not report an error at start of raw deflate.
madler Oct 13, 2017
ca7d7d4
Add legal disclaimer to README.
madler Oct 13, 2017
b599703
Emphasize the need to continue decompressing gzip members.
madler Jan 9, 2018
4c07900
Correct the initialization requirements for deflateInit2().
madler Jan 31, 2018
ddca34e
Fix a bug that can crash deflate on some input when using Z_FIXED.
madler Apr 18, 2018
fe019c7
Assure that the number of bits for deflatePrime() is valid.
madler Apr 18, 2018
8f1269b
Use a structure to make globals in enough.c evident.
madler Aug 1, 2018
dfc85b6
Use a macro for the printf format of big_t in enough.c.
madler Aug 1, 2018
01a3b96
Clean up code style in enough.c, update version.
madler Aug 1, 2018
87345a4
Use inline function instead of macro for index in enough.c.
madler Aug 2, 2018
094ad2b
Clarify that prefix codes are counted in enough.c.
madler Aug 4, 2018
3f305a7
Show all the codes for the maximum tables size in enough.c.
madler Aug 4, 2018
1cc711e
Add gznorm.c example, which normalizes gzip files.
madler Oct 6, 2018
2f6044b
Fix the zran.c example to work on a multiple-member gzip file.
madler Oct 8, 2018
4562a25
Add tables for crc32_combine(), to speed it up by a factor of 200.
madler Nov 3, 2018
5702568
Add crc32_combine_gen() and crc32_combine_op() for fast combines.
madler Nov 4, 2018
a24cf67
Speed up software CRC-32 computation by a factor of 1.5 to 3.
madler Dec 11, 2018
b5a2a75
Use atomic test and set, if available, for dynamic CRC tables.
madler Dec 26, 2018
ff0f3d1
Don't bother computing check value after successful inflateSync().
madler Jan 3, 2019
e403bf1
Correct comment in crc32.c.
madler Feb 4, 2019
1da5c4c
Add use of the ARMv8 crc32 instructions when requested.
madler Feb 18, 2019
1c9e904
Use ARM crc32 instructions if the ARM architecture has them.
madler Feb 18, 2019
5e81e4c
Explicitly note that the 32-bit check values are 32 bits.
madler Apr 5, 2019
d793747
Avoid adding empty gzip member after gzflush with Z_FINISH.
madler Apr 14, 2019
9a9c47b
Fix memory leak on error in gzlog.c.
madler May 26, 2019
815fbe2
Fix error in comment on the polynomial representation of a byte.
madler Jul 9, 2019
77fbba8
Clarify gz* function interfaces, referring to parameter names.
madler Aug 31, 2020
d2fb6a8
Change macro name in inflate.c to avoid collision in VxWorks.
madler Sep 17, 2020
36e9f70
Correct typo in blast.c.
madler Jan 18, 2021
8129aa8
Improve portability of contrib/minizip.
madler Feb 10, 2021
5667ca1
Fix indentation in minizip's zip.c.
madler Jul 8, 2021
c7e2c7c
Replace black/white with allow/block. (theresa-m)
madler Jan 1, 2022
31b7702
minizip warning fix if MAXU32 already defined. (gvollant)
madler Jan 1, 2022
660a427
Fix unztell64() in minizip to work past 4GB. (Daniël Hörchner)
madler Jan 1, 2022
aa811fd
Clean up minizip to reduce warnings for testing.
madler Jan 1, 2022
aa1e101
Add fallthrough comments for gcc.
madler Mar 27, 2022
03decff
Eliminate use of ULL constants.
madler Mar 27, 2022
c990af7
Separate out address sanitizing from warnings in configure.
madler Mar 27, 2022
f191714
Remove destructive aspects of make distclean.
madler Mar 27, 2022
38c5f3b
Check for cc masquerading as gcc or clang in configure.
madler Mar 27, 2022
46da6a6
Fix crc32.c to compile local functions only if used.
madler Mar 27, 2022
8a346fc
zlib 1.2.12
madler Mar 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Ms VisualStudio - Assembler speedups on x64
  • Loading branch information
U-CFATI-5510-0\cfati committed Sep 3, 2018
commit 8266563fb77df1bafe906d29f879885fc832b318
42 changes: 23 additions & 19 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ if(NOT CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)
endif()

set(ZLIB_PC ${CMAKE_CURRENT_BINARY_DIR}/zlib.pc)
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/zlib.pc.cmakein
${ZLIB_PC} @ONLY)
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h.cmakein
${CMAKE_CURRENT_BINARY_DIR}/zconf.h @ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/zlib.pc.cmakein
${ZLIB_PC} @ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/zconf.h.cmakein
${CMAKE_CURRENT_BINARY_DIR}/zconf.h @ONLY)
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR})


Expand Down Expand Up @@ -136,30 +136,34 @@ if(CMAKE_COMPILER_IS_GNUCC)
set(ZLIB_ASMS contrib/amd64/amd64-match.S)
endif ()

if(ZLIB_ASMS)
add_definitions(-DASMV)
set_source_files_properties(${ZLIB_ASMS} PROPERTIES LANGUAGE C COMPILE_FLAGS -DNO_UNDERLINE)
endif()
if(ZLIB_ASMS)
add_definitions(-DASMV)
set_source_files_properties(${ZLIB_ASMS} PROPERTIES LANGUAGE C COMPILE_FLAGS -DNO_UNDERLINE)
endif()
endif()

if(MSVC)
if(ASM686)
ENABLE_LANGUAGE(ASM_MASM)
ENABLE_LANGUAGE(ASM_MASM)
set(ZLIB_ASMS
contrib/masmx86/inffas32.asm
contrib/masmx86/match686.asm
)
contrib/masmx86/inffas32.asm
contrib/masmx86/match686.asm
)
elseif (AMD64)
ENABLE_LANGUAGE(ASM_MASM)
ENABLE_LANGUAGE(ASM_MASM)
set(ZLIB_ASMS
contrib/masmx64/gvmat64.asm
contrib/masmx64/inffasx64.asm
)
contrib/masmx64/gvmat64.asm
contrib/masmx64/inffasx64.asm
)
set(ZLIB_SRCS
${ZLIB_SRCS}
contrib/masmx64/inffas8664.c
)
endif()

if(ZLIB_ASMS)
add_definitions(-DASMV -DASMINF)
endif()
if(ZLIB_ASMS)
add_definitions(-DASMV -DASMINF)
endif()
endif()

# parse the full version number from zlib.h and include in ZLIB_FULL_VERSION
Expand Down