MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / swap2

Function swap2

Source/ThirdParty/tinyexr.h:891–902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

889}
890
891static void inline swap2(unsigned short *val) {
892#if TINYEXR_LITTLE_ENDIAN
893 (void)val;
894#else
895 unsigned short tmp = *val;
896 unsigned char *dst = reinterpret_cast<unsigned char *>(val);
897 unsigned char *src = reinterpret_cast<unsigned char *>(&tmp);
898
899 dst[0] = src[1];
900 dst[1] = src[0];
901#endif
902}
903
904#ifdef __clang__
905#pragma clang diagnostic push

Callers 3

DecompressB44Function · 0.85
DecodePixelDataFunction · 0.85
EncodePixelDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected