MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / ByteSwap32

Function ByteSwap32

Libraries/unrar/rawint.hpp:111–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109
110
111inline uint32 ByteSwap32(uint32 i)
112{
113#ifdef _MSC_VER
114 return _byteswap_ulong(i);
115#elif (__GNUC__ > 3) && (__GNUC_MINOR__ > 2)
116 return __builtin_bswap32(i);
117#else
118 return (rotl32(i,24)&0xFF00FF00)|(rotl32(i,8)&0x00FF00FF);
119#endif
120}
121
122#endif

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected