| 889 | } |
| 890 | |
| 891 | static 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 |
no outgoing calls
no test coverage detected