This method doesn't depend on compiler but violate C standard. * It can generate buggy code on targets which do not support unaligned memory accesses. * But in some circumstances, it's the only known way to get the most performance (ie GCC + ARMv6)...
Extremely fast non-cryptographic hash algorithm. Contribute to reward-yourself/xxHash development by creating an account on GitHub.
xxhash.o: xxhash.c xxhash.h xxhsum.o: $(XXHSUM_SRC_DIR)/xxhsum.c $(XXHSUM_HEADERS) \ xxhash.h xxh_x86dispatch.h xxh_x86dispatch.o: xxh_x86dispatch.c xxh_x86dispatch.h xxhash.h .PHONY: xxhsum_and_links xxhsum_and_links: xxhsum xxh32sum xxh64sum xxh128sum xxh3sum xx...
(defined(__GNUC__) && (defined(__ARM_ARCH) && __ARM_ARCH >= 7))) # define XXH_FORCE_MEMORY_ACCESS 1 # endif #endif /*!XXH_ACCEPT_NULL_INPUT_POINTER : * If input pointer is NULL, xxHash default behavior is to dereference it, triggering a segfault. * When this macro is enabled...
xxhsum.c README.md xxHash - Extremely fast hash algorithm xxHash is an Extremely fast Hash algorithm, running at RAM speed limits. It successfully completes the SMHasher test suite which evaluates collision, dispersion and randomness qualities of hash functions. Code is highly portable, and hashes...
defined(__GNUC__) # ifdef __IBMC__ # pragma pack(1) # else # pragma pack(push, 1) # endif #endiftypedef struct _U32_S { U32 v; } _PACKED U32_S; typedef struct _U64_S { U64 v; } _PACKED U64_S;#if !defined(XXH_USE_UNALIGNED_ACCESS) && !defined(__GNUC__)...
struct xxhash_running_checksum *c = calloc(1, sizeof(struct xxhash_running_checksum)); XXH64_reset(&c->td64, 0); return priv_to_rc(c); }static void xxhash_add_to_running_checksum(struct running_checksum *_c, unsigned int len, unsigned char *buf) ...
Apache Kvrocks is a distributed key value NoSQL database that uses RocksDB as storage engine and is compatible with Redis protocol. - kvrocks/cmake/xxhash.cmake at unstable · G-Core/kvrocks
Calling xxhash 64-bit variant from a C program:#include "xxhash.h" (...) XXH64_hash_t hash = XXH64(buffer, size, seed); }Using streaming variant is more involved, but makes it possible to provide data incrementally:#include "stdlib.h" /* abort() */ #include "xxhash.h" XXH64_...
Extremely fast non-cryptographic hash algorithm. Contribute to ink-splatters/xxHash development by creating an account on GitHub.