mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-11 14:12:26 -05:00
pdbox: Fixing yellows.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26552 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
66cc643402
commit
58d875e441
1 changed files with 7 additions and 4 deletions
|
|
@ -16,7 +16,7 @@ typedef int t_sample;
|
||||||
|
|
||||||
/* fixed point multiplication and division */
|
/* fixed point multiplication and division */
|
||||||
|
|
||||||
#ifdef ROCKBOX
|
#if defined(ROCKBOX) && !defined(SIMULATOR)
|
||||||
#if defined(CPU_ARM)
|
#if defined(CPU_ARM)
|
||||||
#define mult(A,B) \
|
#define mult(A,B) \
|
||||||
({ \
|
({ \
|
||||||
|
|
@ -48,11 +48,14 @@ static inline t_fixed mult_cf(t_fixed x, t_fixed y)
|
||||||
return t1;
|
return t1;
|
||||||
}
|
}
|
||||||
#define idiv(a,b) ((((long long) (a) )<<fix1)/(long long) (b) )
|
#define idiv(a,b) ((((long long) (a) )<<fix1)/(long long) (b) )
|
||||||
#endif /* CPU_... */
|
#else /* CPU_... */
|
||||||
#else /* ROCKBOX */
|
|
||||||
#define mult(a,b) (long long)(((long long) (a) * (long long) (b))>>fix1)
|
#define mult(a,b) (long long)(((long long) (a) * (long long) (b))>>fix1)
|
||||||
#define idiv(a,b) ((((long long) (a) )<<fix1)/(long long) (b) )
|
#define idiv(a,b) ((((long long) (a) )<<fix1)/(long long) (b) )
|
||||||
#endif /* ROCKBOX */
|
#endif /* CPU_... */
|
||||||
|
#else /* ROCKBOX && !SIMULATOR */
|
||||||
|
#define mult(a,b) (long long)(((long long) (a) * (long long) (b))>>fix1)
|
||||||
|
#define idiv(a,b) ((((long long) (a) )<<fix1)/(long long) (b) )
|
||||||
|
#endif /* ROCKBOX && !SIMULATOR */
|
||||||
|
|
||||||
/* conversion macros */
|
/* conversion macros */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue