]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crc32c: pass integer param by uint64_t
authorKefu Chai <kchai@redhat.com>
Wed, 13 Sep 2017 09:20:05 +0000 (17:20 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 16 Sep 2017 02:47:02 +0000 (10:47 +0800)
the assembly is expecting 64bits input, so make this explicit.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/crc32c_intel_fast.c

index 4a3bfc930e5e9919968d396cc26bf063d2b26bb4..188ff95ff5af01f5d32309263c6499763a739817 100644 (file)
@@ -1,8 +1,8 @@
 #include "acconfig.h"
 #include "common/crc32c_intel_baseline.h"
 
-extern unsigned int crc32_iscsi_00(unsigned char const *buffer, int len, unsigned int crc) asm("crc32_iscsi_00");
-extern unsigned int crc32_iscsi_zero_00(unsigned char const *buffer, int len, unsigned int crc) asm("crc32_iscsi_zero_00");
+extern unsigned int crc32_iscsi_00(unsigned char const *buffer, uint64_t len, uint64_t crc) asm("crc32_iscsi_00");
+extern unsigned int crc32_iscsi_zero_00(unsigned char const *buffer, uint64_t len, uint64_t crc) asm("crc32_iscsi_zero_00");
 
 #ifdef HAVE_GOOD_YASM_ELF64