summaryrefslogtreecommitdiff
path: root/deflate.c
diff options
context:
space:
mode:
authorNoel Gordon <noel@chromium.org>2020-04-22 02:50:27 +0000
committerCommit Bot <commit-bot@chromium.org>2020-04-22 02:50:27 +0000
commitf36fe82cebf693d5d417fa5f8bbde63a420cdbc7 (patch)
treee0d403ed7b2c753e370570a30d24a3e68b2cb7db /deflate.c
parent2ed8ded6b1e8d233bd045a612aa3b70a5444ff10 (diff)
downloadzlib-f36fe82cebf693d5d417fa5f8bbde63a420cdbc7.tar.gz
[zlib] Add deflate fill_window_sse feature guard
Add DEFLATE_FILL_WINDOW_SSE2 define for the fill_window_sse feature and use it to guard the feature code (not ADLER32_SIMD_SSSE3). The fill_window_sse feature only requires SSE2: use x86_cpu_enable_sse2 for the run-time check. No-presubmit: true Bug: 1072308 Change-Id: I770fffa619c998dae1c1f8da1cac8b973e43a509 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2156330 Commit-Queue: Noel Gordon <noel@chromium.org> Auto-Submit: Noel Gordon <noel@chromium.org> Reviewed-by: Adenilson Cavalcanti <cavalcantii@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#761279} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: cd8dcf969915890e5b0d6aa5f9c35ec9a0363290
Diffstat (limited to 'deflate.c')
-rw-r--r--deflate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/deflate.c b/deflate.c
index 744d855..cec0294 100644
--- a/deflate.c
+++ b/deflate.c
@@ -1521,8 +1521,8 @@ local void fill_window_c(deflate_state *s);
local void fill_window(deflate_state *s)
{
-#ifdef ADLER32_SIMD_SSSE3
- if (x86_cpu_enable_simd) {
+#ifdef DEFLATE_FILL_WINDOW_SSE2
+ if (x86_cpu_enable_sse2) {
fill_window_sse(s);
return;
}