diff options
| author | Nathan Moinvaziri <nathan@solidstatenetworks.com> | 2020-03-18 09:25:51 -0400 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2020-04-30 10:01:46 +0200 |
| commit | 78e94a1e9f22e7e4f04525b2ab9482981d912414 (patch) | |
| tree | cd981e8a2ed7846151568d193c32c85547ba0bb4 | |
| parent | 69bbb0d823771bc84ed1ba96381a91e06847c428 (diff) | |
| download | Project-Tick-78e94a1e9f22e7e4f04525b2ab9482981d912414.tar.gz Project-Tick-78e94a1e9f22e7e4f04525b2ab9482981d912414.zip | |
Use quick_insert_string from functable in deflate_quick.
| -rw-r--r-- | arch/x86/deflate_quick.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/deflate_quick.c b/arch/x86/deflate_quick.c index 6ac97625f0..a8d15bb4d3 100644 --- a/arch/x86/deflate_quick.c +++ b/arch/x86/deflate_quick.c @@ -23,6 +23,7 @@ # include <nmmintrin.h> #endif #include "../../deflate.h" +#include "../../functable.h" #include "../../memcopy.h" #ifdef ZLIB_DEBUG @@ -31,7 +32,6 @@ extern void fill_window_sse(deflate_state *s); extern void flush_pending(PREFIX3(stream) *strm); -extern Pos quick_insert_string_sse4(deflate_state *const s, const Pos str); static inline long compare258(const unsigned char *const src0, const unsigned char *const src1) { #ifdef _MSC_VER @@ -219,7 +219,7 @@ ZLIB_INTERNAL block_state deflate_quick(deflate_state *s, int flush) { } if (s->lookahead >= MIN_MATCH) { - hash_head = quick_insert_string_sse4(s, s->strstart); + hash_head = functable.quick_insert_string(s, s->strstart); dist = s->strstart - hash_head; if (dist > 0 && (dist-1) < (wsize - 1)) { |
