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

Function MEM_isLittleEndian

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

Source from the content-addressed store, hash-verified

154MEM_STATIC unsigned MEM_64bits(void) { return sizeof(size_t)==8; }
155
156MEM_STATIC unsigned MEM_isLittleEndian(void)
157{
158 const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */
159 return one.c[0];
160}
161
162#if defined(MEM_FORCE_MEMORY_ACCESS) && (MEM_FORCE_MEMORY_ACCESS==2)
163

Callers 14

MEM_readLE16Function · 0.70
MEM_writeLE16Function · 0.70
MEM_readLE32Function · 0.70
MEM_writeLE32Function · 0.70
MEM_readLE64Function · 0.70
MEM_writeLE64Function · 0.70
MEM_readBE32Function · 0.70
MEM_writeBE32Function · 0.70
MEM_readBE64Function · 0.70
MEM_writeBE64Function · 0.70
HUF_DEltX1_set4Function · 0.50
ZSTD_readMINMATCHFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected