Fix warnings on non-arm targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18702 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d1b19be423
commit
6219f4c862
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ struct filter_t {
|
||||||
#define FP_HALF (1 << (FRACBITS - 1)) /* 0.5 in fixed-point format. */
|
#define FP_HALF (1 << (FRACBITS - 1)) /* 0.5 in fixed-point format. */
|
||||||
#define FP_TO_INT(x) ((x + FP_HALF) >> FRACBITS); /* round(x) */
|
#define FP_TO_INT(x) ((x + FP_HALF) >> FRACBITS); /* round(x) */
|
||||||
|
|
||||||
#if ARM_ARCH >= 6
|
#if defined(CPU_ARM) && (ARM_ARCH >= 6)
|
||||||
#define SATURATE(x) ({int __res; asm("ssat %0, #16, %1" : "=r"(__res) : "r"(x)); __res; })
|
#define SATURATE(x) ({int __res; asm("ssat %0, #16, %1" : "=r"(__res) : "r"(x)); __res; })
|
||||||
#else
|
#else
|
||||||
#define SATURATE(x) (int16_t)(((x) == (int16_t)(x)) ? (x) : ((x) >> 31) ^ 0x7FFF);
|
#define SATURATE(x) (int16_t)(((x) == (int16_t)(x)) ? (x) : ((x) >> 31) ^ 0x7FFF);
|
||||||
|
|
Loading…
Reference in a new issue