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.