aboutsummaryrefslogtreecommitdiff
path: root/crc32.c
diff options
context:
space:
mode:
Diffstat (limited to 'crc32.c')
-rw-r--r--crc32.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/crc32.c b/crc32.c
index 4cc573f8..4d5f5b23 100644
--- a/crc32.c
+++ b/crc32.c
@@ -32,6 +32,10 @@
32 32
33#include "zutil.h" /* for Z_U4, Z_U8, z_crc_t, and FAR definitions */ 33#include "zutil.h" /* for Z_U4, Z_U8, z_crc_t, and FAR definitions */
34 34
35#ifdef HAVE_S390X_VX
36# include "contrib/crc32vx/crc32_vx_hooks.h"
37#endif
38
35 /* 39 /*
36 A CRC of a message is computed on N braids of words in the message, where 40 A CRC of a message is computed on N braids of words in the message, where
37 each word consists of W bytes (4 or 8). If N is 3, for example, then three 41 each word consists of W bytes (4 or 8). If N is 3, for example, then three
@@ -942,6 +946,9 @@ unsigned long ZEXPORT crc32_z(unsigned long crc, const unsigned char FAR *buf,
942/* ========================================================================= */ 946/* ========================================================================= */
943unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char FAR *buf, 947unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char FAR *buf,
944 uInt len) { 948 uInt len) {
949 #ifdef HAVE_S390X_VX
950 return crc32_z_hook(crc, buf, len);
951 #endif
945 return crc32_z(crc, buf, len); 952 return crc32_z(crc, buf, len);
946} 953}
947 954