CRC32Stream.st
changeset 4885 f23f8cf58b0c
parent 4884 e5f679d1e592
child 4886 15c1464ddc04
equal deleted inserted replaced
4884:e5f679d1e592 4885:f23f8cf58b0c
    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 }