1
0
Fork 0
forked from len0rd/rockbox

Fix red, DESCALE_SHIFT macro was missing a right-parenthesis.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23968 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Andrew Mahone 2009-12-13 04:06:45 +00:00
parent af5bad46d8
commit 5783bef32c

View file

@ -130,7 +130,7 @@ static INLINE void ComplexMult(real_t *y1, real_t *y2,
#define MUL_SHIFT6(A,B) (real_t)(((int64_t)(A)*(int64_t)(B)+(1 << (6-1))) >> 6) #define MUL_SHIFT6(A,B) (real_t)(((int64_t)(A)*(int64_t)(B)+(1 << (6-1))) >> 6)
#define MUL_SHIFT23(A,B) (real_t)(((int64_t)(A)*(int64_t)(B)+(1 << (23-1))) >> 23) #define MUL_SHIFT23(A,B) (real_t)(((int64_t)(A)*(int64_t)(B)+(1 << (23-1))) >> 23)
#define DESCALE(A,S) ((S)>0?(((A)>>((S)-1))+1)>>1:(A)<<-(S)) #define DESCALE(A,S) ((S)>0?(((A)>>((S)-1))+1)>>1:(A)<<-(S))
#define DESCALE_SHIFT(A,SH,SC) DESCALE((A),(SC)-(SH) #define DESCALE_SHIFT(A,SH,SC) DESCALE((A),(SC)-(SH))
#elif defined(__GNUC__) && defined (__arm__) #elif defined(__GNUC__) && defined (__arm__)
@ -241,7 +241,7 @@ static inline real_t DESCALE_SHIFT(unsigned val, int shift, int scale)
#define MUL_SHIFT6(A,B) (real_t)(((int64_t)(A)*(int64_t)(B)+(1 << (6-1))) >> 6) #define MUL_SHIFT6(A,B) (real_t)(((int64_t)(A)*(int64_t)(B)+(1 << (6-1))) >> 6)
#define MUL_SHIFT23(A,B) (real_t)(((int64_t)(A)*(int64_t)(B)+(1 << (23-1))) >> 23) #define MUL_SHIFT23(A,B) (real_t)(((int64_t)(A)*(int64_t)(B)+(1 << (23-1))) >> 23)
#define DESCALE(A,S) ((S)>0?(((A)>>((S)-1))+1)>>1:(A)<<-(S)) #define DESCALE(A,S) ((S)>0?(((A)>>((S)-1))+1)>>1:(A)<<-(S))
#define DESCALE_SHIFT(A,SH,SC) DESCALE((A),(SC)-(SH) #define DESCALE_SHIFT(A,SH,SC) DESCALE((A),(SC)-(SH))
/* Complex multiplication */ /* Complex multiplication */
static INLINE void ComplexMult(real_t *y1, real_t *y2, static INLINE void ComplexMult(real_t *y1, real_t *y2,