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, 30 30 my_crc32_t my_checksum= my_crc32_zlib; 31 31 #endif 32 32 33 #if __GNUC__ >= 4 && defined(__x86_64__) 33 #if __GNUC__ >= 4 && defined(__x86_64__) && defined(HAVE_CLMUL_INSTRUCTION) 34 34 35 35 extern int crc32_pclmul_enabled(); 36 36 extern unsigned int crc32_pclmul(unsigned int, const void *, size_t);