diff options
author | Wincent Balin <wincent@rockbox.org> | 2010-06-04 18:54:07 +0000 |
---|---|---|
committer | Wincent Balin <wincent@rockbox.org> | 2010-06-04 18:54:07 +0000 |
commit | 58d875e4415c7d86955e6fba2508c803fe4b6c65 (patch) | |
tree | 8b7c1b7b92a95372296680852fbd957977d61bdf /apps/plugins/pdbox/PDa | |
parent | 66cc6434028e98c1ccb4dda5a30d653ea0fb3378 (diff) | |
download | rockbox-58d875e4415c7d86955e6fba2508c803fe4b6c65.tar.gz rockbox-58d875e4415c7d86955e6fba2508c803fe4b6c65.zip |
pdbox: Fixing yellows.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26552 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pdbox/PDa')
-rw-r--r-- | apps/plugins/pdbox/PDa/src/m_fixed.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/plugins/pdbox/PDa/src/m_fixed.h b/apps/plugins/pdbox/PDa/src/m_fixed.h index d46299efe6..f015b09b0a 100644 --- a/apps/plugins/pdbox/PDa/src/m_fixed.h +++ b/apps/plugins/pdbox/PDa/src/m_fixed.h | |||
@@ -16,7 +16,7 @@ typedef int t_sample; | |||
16 | 16 | ||
17 | /* fixed point multiplication and division */ | 17 | /* fixed point multiplication and division */ |
18 | 18 | ||
19 | #ifdef ROCKBOX | 19 | #if defined(ROCKBOX) && !defined(SIMULATOR) |
20 | #if defined(CPU_ARM) | 20 | #if defined(CPU_ARM) |
21 | #define mult(A,B) \ | 21 | #define mult(A,B) \ |
22 | ({ \ | 22 | ({ \ |
@@ -48,11 +48,14 @@ static inline t_fixed mult_cf(t_fixed x, t_fixed y) | |||
48 | return t1; | 48 | return t1; |
49 | } | 49 | } |
50 | #define idiv(a,b) ((((long long) (a) )<<fix1)/(long long) (b) ) | 50 | #define idiv(a,b) ((((long long) (a) )<<fix1)/(long long) (b) ) |
51 | #else /* CPU_... */ | ||
52 | #define mult(a,b) (long long)(((long long) (a) * (long long) (b))>>fix1) | ||
53 | #define idiv(a,b) ((((long long) (a) )<<fix1)/(long long) (b) ) | ||
51 | #endif /* CPU_... */ | 54 | #endif /* CPU_... */ |
52 | #else /* ROCKBOX */ | 55 | #else /* ROCKBOX && !SIMULATOR */ |
53 | #define mult(a,b) (long long)(((long long) (a) * (long long) (b))>>fix1) | 56 | #define mult(a,b) (long long)(((long long) (a) * (long long) (b))>>fix1) |
54 | #define idiv(a,b) ((((long long) (a) )<<fix1)/(long long) (b) ) | 57 | #define idiv(a,b) ((((long long) (a) )<<fix1)/(long long) (b) ) |
55 | #endif /* ROCKBOX */ | 58 | #endif /* ROCKBOX && !SIMULATOR */ |
56 | 59 | ||
57 | /* conversion macros */ | 60 | /* conversion macros */ |
58 | 61 | ||