#include <ncbi_pch.hpp>
#include <corelib/ncbistd.hpp>
#include <corelib/ncbifile.hpp>
#include <util/checksum.hpp>
#include "checksum/cityhash/city.h"
#include "checksum/farmhash/config.h"
#include "checksum/farmhash/farmhash.h"
#include "checksum/murmurhash/MurmurHash2.cxx"
#include "checksum/murmurhash/MurmurHash3.cxx"
#include "crc32tables.c"
Go to the source code of this file.
Go to the SVN repository for this file.
#define USE_CRC32C_INTEL #define TABLES_COUNT 8 #define NCBI_USE_PRECOMPILED_CRC32_TABLES 1 #define s_UpdateCRC32Forward_1(crc, str, table) #define s_UpdateCRC32Forward_2(crc, str, table) #define s_UpdateCRC32Forward_4(crc, str, table) #define s_UpdateCRC32Forward_8(crc, str, table) #define s_UpdateCRC32Reverse_1(crc, str, table) #define s_UpdateCRC32Reverse_2(crc, str, table) #define s_UpdateCRC32Reverse_4(crc, str, table) #define s_UpdateCRC32Reverse_8(crc, str, table) #define ADJUST_ADLER(a) a = (a & 0xffff) + (a >> 16) * (0x10000-MOD_ADLER) #define FINALIZE_ADLER(a) if (a >= MOD_ADLER) a -= MOD_ADLER static void s_InitTableCRC32Forward () static void s_InitTableCRC32Reverse () static void s_InitTableCRC32CReverse () CChecksum & ComputeFileChecksum_deprecated (const string &path, CChecksum &checksum) CChecksum ComputeFileChecksum (const string &path, CChecksum::EMethod method) Compute checksum for the given file. More...Definition at line 83 of file checksum.cpp.
◆ s_UpdateCRC32Forward_1 #define s_UpdateCRC32Forward_1 ( crc, str, table ) Value:do { \
Uint4 v = *(
const Uint1*)(
str) ^ ((crc) >> 24); \
(crc) = ((crc) << 8) ^ (
table)[0][v]; \
} while(0)
static const char * str(char *buf, int n)
uint8_t Uint1
1-byte (8-bit) unsigned integer
<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n table
Definition at line 679 of file checksum.cpp.
◆ s_UpdateCRC32Forward_2 #define s_UpdateCRC32Forward_2 ( crc, str, table ) Value:do { \
\
(crc) = ((crc) << 16) ^ \
(
table)[0][(((crc)>>16)^(v>>8)) & 0xff] ^ \
(
table)[1][(((crc)>>24)^(v )) & 0xff]; \
} while(0)
uint16_t Uint2
2-byte (16-bit) unsigned integer
Definition at line 685 of file checksum.cpp.
◆ s_UpdateCRC32Forward_4 #define s_UpdateCRC32Forward_4 ( crc, str, table ) Value:do { \
\
(crc) = \
(
table)[0][(((crc) )^(v>>24)) & 0xff] ^ \
(
table)[1][(((crc)>> 8)^(v>>16)) & 0xff] ^ \
(
table)[2][(((crc)>>16)^(v>> 8)) & 0xff] ^ \
(
table)[3][(((crc)>>24)^(v )) & 0xff]; \
} while(0)
uint32_t Uint4
4-byte (32-bit) unsigned integer
Definition at line 694 of file checksum.cpp.
◆ s_UpdateCRC32Forward_8 #define s_UpdateCRC32Forward_8 ( crc, str, table ) Value:do { \
Uint4 v0 = ((
const Uint4*)(
str))[0]; \
Uint4 v1 = ((
const Uint4*)(
str))[1]; \
\
(crc) = \
(
table)[0][( (v1>>24)) ] ^ \
(
table)[1][( (v1>>16)) & 0xff] ^ \
(
table)[2][( (v1>> 8)) & 0xff] ^ \
(
table)[3][( (v1 )) & 0xff] ^ \
(
table)[4][(((crc) )^(v0>>24)) & 0xff] ^ \
(
table)[5][(((crc)>> 8)^(v0>>16)) & 0xff] ^ \
(
table)[6][(((crc)>>16)^(v0>> 8)) & 0xff] ^ \
(
table)[7][(((crc)>>24)^(v0 )) & 0xff]; \
} while(0)
Definition at line 705 of file checksum.cpp.
◆ s_UpdateCRC32Reverse_1 #define s_UpdateCRC32Reverse_1 ( crc, str, table ) Value:do { \
v ^= (crc); \
(crc) = ((crc) >> 8) ^ \
(
table)[0][v & 0xff]; \
} while(0)
Definition at line 722 of file checksum.cpp.
◆ s_UpdateCRC32Reverse_2 #define s_UpdateCRC32Reverse_2 ( crc, str, table ) Value:do { \
v ^= (crc); \
(crc) = ((crc) >> 16) ^ \
(
table)[1][(v ) & 0xff] ^ \
(
table)[0][(v>>8) & 0xff]; \
} while(0)
Definition at line 730 of file checksum.cpp.
◆ s_UpdateCRC32Reverse_4 #define s_UpdateCRC32Reverse_4 ( crc, str, table ) Value:do { \
v ^= (crc); \
(crc) = \
(
table)[3][(v ) & 0xff] ^ \
(
table)[2][(v>> 8) & 0xff] ^ \
(
table)[1][(v>>16) & 0xff] ^ \
(
table)[0][(v>>24) ]; \
} while(0)
Definition at line 739 of file checksum.cpp.
◆ s_UpdateCRC32Reverse_8 #define s_UpdateCRC32Reverse_8 ( crc, str, table ) Value:do { \
Uint4 v0 = ((
const Uint4*)(
str))[0]; \
Uint4 v1 = ((
const Uint4*)(
str))[1]; \
v0 ^= (crc); \
(crc) = \
(
table)[7][(v0 ) & 0xff] ^ \
(
table)[6][(v0>> 8) & 0xff] ^ \
(
table)[5][(v0>>16) & 0xff] ^ \
(
table)[4][(v0>>24) ] ^ \
(
table)[3][(v1 ) & 0xff] ^ \
(
table)[2][(v1>> 8) & 0xff] ^ \
(
table)[1][(v1>>16) & 0xff] ^ \
(
table)[0][(v1>>24) ]; \
} while(0)
Definition at line 750 of file checksum.cpp.
◆ TABLES_COUNT ◆ USE_CRC32C_INTEL ◆ TCRC32Table ◆ ComputeFileChecksum_deprecated() ◆ s_InitTableCRC32CReverse() static void s_InitTableCRC32CReverse ( ) inlinestatic ◆ s_InitTableCRC32Forward() static void s_InitTableCRC32Forward ( ) inlinestatic ◆ s_InitTableCRC32Reverse() static void s_InitTableCRC32Reverse ( ) inlinestatic ◆ s_PrintTable()template<size_t kCRC32Tables>
◆ s_UpdateAdler32() ◆ s_UpdateCRC32Forward()template<size_t kCRC32Tables>
◆ s_UpdateCRC32Reverse()template<size_t kCRC32Tables>
◆ kCRC32Size const size_t kCRC32Size = 256 static ◆ sx_CharCount const char sx_CharCount[] = "chars: " static ◆ sx_End const char sx_End[] = " */" static ◆ sx_LineCount const char sx_LineCount[] = "lines: " static ◆ sx_Start const char sx_Start[] = "/* Original file checksum: " staticRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4