summaryrefslogtreecommitdiff
path: root/functable.h
diff options
context:
space:
mode:
authorHans Kristian Rosbach <hk-git@circlestorm.org>2019-08-23 20:25:26 +0200
committerHans Kristian Rosbach <hk-github@circlestorm.org>2019-09-04 08:53:36 +0200
commit4cee5dcdfea03ef7c590d60c0f618e2dbcf573df (patch)
treed2d458bf22b99acb36ead8fee7bf0212af8615aa /functable.h
parent11f2e8f33788f7e3619e6cee6f7634295f102da9 (diff)
Add slide_hash to functable, and enable the sse2-optimized version.
Add necessary code to cmake and configure. Fix slide_hash_sse2 to compile with zlib-ng.
Diffstat (limited to 'functable.h')
-rw-r--r--functable.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/functable.h b/functable.h
index 280651c..a9c8e9b 100644
--- a/functable.h
+++ b/functable.h
@@ -13,6 +13,7 @@ struct functable_s {
Pos (* insert_string) (deflate_state *const s, const Pos str, unsigned int count);
uint32_t (* adler32) (uint32_t adler, const unsigned char *buf, size_t len);
uint32_t (* crc32) (uint32_t crc, const unsigned char *buf, uint64_t len);
+ void (* slide_hash) (deflate_state *s);
};
ZLIB_INTERNAL extern __thread struct functable_s functable;