MCPcopy Create free account
hub / github.com/F-Stack/f-stack / MEM_writeBEST

Function MEM_writeBEST

freebsd/contrib/zstd/lib/common/mem.h:410–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410MEM_STATIC void MEM_writeBEST(void* memPtr, size_t val)
411{
412 if (MEM_32bits())
413 MEM_writeBE32(memPtr, (U32)val);
414 else
415 MEM_writeBE64(memPtr, (U64)val);
416}
417
418/* code only tested on 32 and 64 bits systems */
419MEM_STATIC void MEM_check(void) { DEBUG_STATIC_ASSERT((sizeof(size_t)==4) || (sizeof(size_t)==8)); }

Callers

nothing calls this directly

Calls 3

MEM_32bitsFunction · 0.70
MEM_writeBE32Function · 0.70
MEM_writeBE64Function · 0.70

Tested by

no test coverage detected