File: zfpHash.h

package info (click to toggle)
zfp 1.0.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,744 kB
  • sloc: cpp: 20,656; ansic: 18,871; pascal: 1,231; f90: 907; python: 255; makefile: 183; sh: 79; fortran: 70
file content (26 lines) | stat: -rw-r--r-- 546 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef ZFP_HASH_H
#define ZFP_HASH_H

#include <stddef.h>
#include "include/zfp/internal/zfp/types.h"

uint64
hashBitstream(uint64* ptrStart, size_t bufsizeBytes);

// hash 32-bit valued arrays (int32, float)

uint32
hashArray32(const uint32* arr, size_t nx, ptrdiff_t sx);

uint32
hashStridedArray32(const uint32* arr, size_t n[4], ptrdiff_t s[4]);

// hash 64-bit valued arrays (int64, double)

uint64
hashArray64(const uint64* arr, size_t nx, ptrdiff_t sx);

uint64
hashStridedArray64(const uint64* arr, size_t n[4], ptrdiff_t s[4]);

#endif