ref: 95ed8303421497b4d65c9dca0b6fabe870128667
parent: af76ec0a6b2648254f318e792d7c4cdbf311685f
author: Martin Storsjö <martin@martin.st>
date: Fri Jan 24 10:31:46 EST 2014
Clarify ifdefs around implementations of ENDIAN_FIX
--- a/codec/common/macros.h
+++ b/codec/common/macros.h
@@ -232,15 +232,14 @@
#define CLIP3_QP_0_51(q) WELS_CLIP3(q, 0, 51) // ((q) < (0) ? (0) : ((q) > (51) ? (51) : (q)))
#define CALC_BI_STRIDE(width,bitcount) ((((width * bitcount) + 31) & ~31) >> 3)
-#ifdef WORDS_BIGENDIAN
+
+#ifdef WORDS_BIGENDIAN
static inline uint32_t ENDIAN_FIX (uint32_t x) {
return x;
}
+#else //!WORDS_BIGENDIAN
-#else
-
-
#if defined(_MSC_VER) && defined(_M_IX86)
static inline uint32_t ENDIAN_FIX (uint32_t x) {
__asm {
@@ -260,11 +259,11 @@
#endif
return x;
}
+#endif//GCC
+#endif//!WORDS_BIGENDIAN
-#endif
-#endif
#ifndef BUTTERFLY1x2
#define BUTTERFLY1x2(b) (((b)<<8) | (b))
#endif//BUTTERFLY1x2