Ticket #61063: patch-mariadb105-checksum-clmul.diff

File patch-mariadb105-checksum-clmul.diff, 509 bytes (added by kencu (Ken), 4 years ago)
  • (a) a/./mysys/checksum.c.orig vs. (b) b/./mysys/checksum.c

    diff --git a/./mysys/checksum.c.orig b/./mysys/checksum.c
    index 948b9be..ea0e3e9 100644
    a b static unsigned int my_crc32_zlib(unsigned int crc, const void *data, 
    3030my_crc32_t my_checksum= my_crc32_zlib;
    3131#endif
    3232
    33 #if __GNUC__ >= 4 && defined(__x86_64__)
     33#if __GNUC__ >= 4 && defined(__x86_64__) && defined(HAVE_CLMUL_INSTRUCTION)
    3434
    3535extern int crc32_pclmul_enabled();
    3636extern unsigned int crc32_pclmul(unsigned int, const void *, size_t);