MCPcopy Create free account
hub / github.com/UbiquitousLearning/mllm / write_be32

Function write_be32

mllm/engine/prefix_cache/HaHaHash.cpp:20–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20inline void write_be32(unsigned char* dst, uint32_t v) {
21 if constexpr (std::endian::native == std::endian::little) v = __builtin_bswap32(v);
22 std::memcpy(dst, &v, sizeof(v));
23}
24
25} // namespace MLLM_ANONYMOUS_NAMESPACE
26

Callers 1

hashMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected