MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ByteAs32

Function ByteAs32

tensorflow/core/lib/hash/hash.cc:32–32  ·  view source on GitHub ↗

0xff is in case char is signed.

Source from the content-addressed store, hash-verified

30
31// 0xff is in case char is signed.
32static inline uint32 ByteAs32(char c) { return static_cast<uint32>(c) & 0xff; }
33static inline uint64 ByteAs64(char c) { return static_cast<uint64>(c) & 0xff; }
34
35uint32 Hash32(const char* data, size_t n, uint32 seed) {

Callers 1

Hash32Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected