summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/codecs/demac/libdemac/filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/demac/libdemac/filter.c b/apps/codecs/demac/libdemac/filter.c
index 913654db6e..55378e62c8 100644
--- a/apps/codecs/demac/libdemac/filter.c
+++ b/apps/codecs/demac/libdemac/filter.c
@@ -86,7 +86,7 @@ struct filter_t {
86#define FP_HALF (1 << (FRACBITS - 1)) /* 0.5 in fixed-point format. */ 86#define FP_HALF (1 << (FRACBITS - 1)) /* 0.5 in fixed-point format. */
87#define FP_TO_INT(x) ((x + FP_HALF) >> FRACBITS); /* round(x) */ 87#define FP_TO_INT(x) ((x + FP_HALF) >> FRACBITS); /* round(x) */
88 88
89#if ARM_ARCH >= 6 89#if defined(CPU_ARM) && (ARM_ARCH >= 6)
90#define SATURATE(x) ({int __res; asm("ssat %0, #16, %1" : "=r"(__res) : "r"(x)); __res; }) 90#define SATURATE(x) ({int __res; asm("ssat %0, #16, %1" : "=r"(__res) : "r"(x)); __res; })
91#else 91#else
92#define SATURATE(x) (int16_t)(((x) == (int16_t)(x)) ? (x) : ((x) >> 31) ^ 0x7FFF); 92#define SATURATE(x) (int16_t)(((x) == (int16_t)(x)) ? (x) : ((x) >> 31) ^ 0x7FFF);