@hackage digest0.0.2.1
CRC32 and Adler32 hashes for bytestrings
Categories
License
BSD-2-Clause
Maintainer
Eugene Kirpichov <ekirpichov@gmail.com>
Links
Versions
Installation
Tested Compilers
Dependencies (3)
- base >=4.12 && <5
- bytestring >=0.10 && <0.13
- zlib Show all…
Dependents (34)
@hackage/lhc, @hackage/minio-hs, @hackage/mecha, @hackage/zip-conduit, @hackage/snappy-c, @hackage/cardano-addresses, Show all…
Package Flags
pkg-config
(on by default)
Use pkg-config(1) to locate zlib library.
have_builtin_prefetch
(off by default)
The cxx compiler has the __builtin_prefetch intrinsic.
have_mm_prefetch
(off by default)
Targeting X86 and the compiler has the _mm_prefetch intrinsic.
have_sse42
(off by default)
Can be enabled to improve performance of CRC32C if targeting X86 and the compiler has the _mm_crc32_u{8,32,64} intrinsics.
have_arm64_crc32c
(off by default)
Targeting ARM and the compiler has the __crc32c{b,h,w,d} and the vmull_p64 intrinsics.
have_strong_getauxval
(off by default)
The system libraries have the getauxval function in the sys/auxv.h header. Should be true on Linux and Android API level 20+.
have_weak_getauxval
(off by default)
The compiler supports defining getauxval as a weak symbol. Should be true for any compiler that supports attribute((weak)).
This package provides efficient hash implementations for strict and lazy bytestrings. For now, CRC32 and Adler32 are supported; they are implemented as FFI bindings to efficient code from zlib.