1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-18 15:57:05 +01:00

Hadrons: DiskVector save-on-eviction and faster CRC32 for Eigen matrices

This commit is contained in:
2018-10-18 17:48:25 +01:00
parent f709329d96
commit f333f3e575
2 changed files with 63 additions and 43 deletions

View File

@ -34,10 +34,11 @@ extern "C" {
class GridChecksum
{
public:
static inline uint32_t crc32(void *data,size_t bytes)
static inline uint32_t crc32(const void *data,size_t bytes)
{
return ::crc32(0L,(unsigned char *)data,bytes);
}
template <typename T>
static inline std::string sha256_string(const std::vector<T> &hash)
{