MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / XXHash

Class XXHash

src/core/include/megbrain/utils/hash.h:46–58  ·  view source on GitHub ↗

! * \brief wrapper of the xxHash algorithm */

Source from the content-addressed store, hash-verified

44 * \brief wrapper of the xxHash algorithm
45 */
46class XXHash {
47 long long m_state[11];
48
49public:
50 MGE_WIN_DECLSPEC_FUC XXHash();
51 MGE_WIN_DECLSPEC_FUC void reset();
52
53 //! update internal state, and return *this
54 MGE_WIN_DECLSPEC_FUC XXHash& update(const void* data, size_t len);
55
56 //! get hash value, guaranteed to be non-zero
57 MGE_WIN_DECLSPEC_FUC uint64_t digest() const;
58};
59
60/*!
61 * \brief hash for enum class

Callers 3

applyMethod · 0.85
hashMethod · 0.85
TensorShapeHashKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected