Template Function helpme::compute_fletcher_checksum64

Function Documentation

template<typename Real>
uint64_t helpme::compute_fletcher_checksum64(const Real *data, size_t nElements)

compute_fletcher_checksum64 computes the 64bit Fletcher checksum on some data. Only the data that fit exactly into 32bit chunks are considered.

Parameters:
  • data – pointer to the data to checksum.

  • nElements – the number of elements in the array to checksum.

Returns:

the Fletcher checksum.