equal
deleted
inserted
replaced
49 typedef unsigned char uint8_t; |
49 typedef unsigned char uint8_t; |
50 # endif |
50 # endif |
51 |
51 |
52 #ifdef HAS_CRC |
52 #ifdef HAS_CRC |
53 |
53 |
54 # ifdef __LP64__ |
54 # if __POINTER_SIZE__ == 8 |
55 static inline __uint64__ |
55 static inline __uint64__ |
56 __crc32_u64(__uint64__ crc, __uint64__ value) { |
56 __crc32_u64(__uint64__ crc, __uint64__ value) { |
57 asm("crc32q %[value], %[crc]\n" : [crc] "+r" (crc) : [value] "rm" (value)); |
57 asm("crc32q %[value], %[crc]\n" : [crc] "+r" (crc) : [value] "rm" (value)); |
58 return crc; |
58 return crc; |
59 } |
59 } |