1
0
Fork 0
forked from len0rd/rockbox

Clean up libfaad's fixed point implementation.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28069 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Andree Buschmann 2010-09-13 20:57:22 +00:00
parent aa0f895572
commit ddb936a0c5
6 changed files with 75 additions and 116 deletions

View file

@ -167,9 +167,11 @@ extern struct codec_api* ci;
#ifdef FIXED_POINT
#define DIV_R(A, B) (((int64_t)A << REAL_BITS)/B)
#define DIV_C(A, B) (((int64_t)A << COEF_BITS)/B)
#define DIV_Q(A, B) (((int64_t)A << Q2_BITS )/B)
#else
#define DIV_R(A, B) ((A)/(B))
#define DIV_C(A, B) ((A)/(B))
#define DIV_Q(A, B) ((A)/(B))
#endif
#ifndef SBR_LOW_POWER