am 153de437: am 29a4e283: Merge "We HAVE_LITTLE_ENDIAN."
* commit '153de437c04acc6c4ccb97cf209b12df41191580':
We HAVE_LITTLE_ENDIAN.
diff --git a/audio_utils/include/audio_utils/primitives.h b/audio_utils/include/audio_utils/primitives.h
index 060aefb..b93f649 100644
--- a/audio_utils/include/audio_utils/primitives.h
+++ b/audio_utils/include/audio_utils/primitives.h
@@ -648,14 +648,7 @@
static inline int32_t i32_from_p24(const uint8_t *packed24)
{
/* convert to 32b */
-#if defined(HAVE_BIG_ENDIAN) == defined(HAVE_LITTLE_ENDIAN)
- /* check to see if we have exactly one or the other android endian flags set. */
-#error "Either HAVE_LITTLE_ENDIAN or HAVE_BIG_ENDIAN must be defined"
-#elif defined(HAVE_BIG_ENDIAN)
- return (packed24[2] << 8) | (packed24[1] << 16) | (packed24[0] << 24);
-#else /* HAVE_LITTLE_ENDIAN */
return (packed24[0] << 8) | (packed24[1] << 16) | (packed24[2] << 24);
-#endif
}
/* Convert a 32-bit Q0.31 value to single-precision floating-point.