diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-02-21 16:16:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-02-21 16:16:10 +0000 |
commit | 87cba41e30f31fb96d606fa5079d598ab7ebe4f7 (patch) | |
tree | 56fad1ae369f72a13426af15677dcead81c1eb0b /lzip.h | |
parent | Adding upstream version 1.12. (diff) | |
download | lzlib-87cba41e30f31fb96d606fa5079d598ab7ebe4f7.tar.xz lzlib-87cba41e30f31fb96d606fa5079d598ab7ebe4f7.zip |
Adding upstream version 1.13.upstream/1.13
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lzip.h')
-rw-r--r-- | lzip.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* Lzlib - Compression library for the lzip format - Copyright (C) 2009-2021 Antonio Diaz Diaz. + Copyright (C) 2009-2022 Antonio Diaz Diaz. This library is free software. Redistribution and use in source and binary forms, with or without modification, are permitted provided @@ -168,6 +168,7 @@ static const uint32_t crc32[256] = static inline void CRC32_update_byte( uint32_t * const crc, const uint8_t byte ) { *crc = crc32[(*crc^byte)&0xFF] ^ ( *crc >> 8 ); } +/* about as fast as it is possible without messing with endianness */ static inline void CRC32_update_buf( uint32_t * const crc, const uint8_t * const buffer, const int size ) |