I searched for endian in the documentation search engine and with silver searcher in the codebase. It looks like cdefs.lua does mention some endian checking but the docs don't mention it.
## if ccinfo.is_little_endian then
print 'little endian'
## elseif ccinfo.is_big_endian then
print 'big endian'
## else
print 'endianess is unknown'
## end
Access to whether the compiler is on a big or little endian system is useful for some bit operations.
For example in the xxhash algorithm in Nim:
I searched for
endian
in the documentation search engine and with silver searcher in the codebase. It looks likecdefs.lua
does mention some endian checking but the docs don't mention it.