summaryrefslogtreecommitdiff
path: root/inflate.c
diff options
context:
space:
mode:
Diffstat (limited to 'inflate.c')
-rw-r--r--inflate.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/inflate.c b/inflate.c
index d17bc27..c4241cc 100644
--- a/inflate.c
+++ b/inflate.c
@@ -189,6 +189,12 @@ int ZEXPORT PREFIX(inflateInit2_)(PREFIX3(stream) *strm, int windowBits, const c
int ret;
struct inflate_state *state;
+#ifdef X86_CPUID
+ x86_check_features();
+#elif defined(__arm__) || defined(__aarch64__) || defined(_M_ARM)
+ arm_check_features();
+#endif
+
if (version == NULL || version[0] != PREFIX2(VERSION)[0] || stream_size != (int)(sizeof(PREFIX3(stream))))
return Z_VERSION_ERROR;
if (strm == NULL)