summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pdbox
diff options
context:
space:
mode:
authorWincent Balin <wincent@rockbox.org>2010-06-04 18:54:07 +0000
committerWincent Balin <wincent@rockbox.org>2010-06-04 18:54:07 +0000
commit58d875e4415c7d86955e6fba2508c803fe4b6c65 (patch)
tree8b7c1b7b92a95372296680852fbd957977d61bdf /apps/plugins/pdbox
parent66cc6434028e98c1ccb4dda5a30d653ea0fb3378 (diff)
downloadrockbox-58d875e4415c7d86955e6fba2508c803fe4b6c65.tar.gz
rockbox-58d875e4415c7d86955e6fba2508c803fe4b6c65.tar.bz2
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')
-rw-r--r--apps/plugins/pdbox/PDa/src/m_fixed.h9
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;
/* fixed point multiplication and division */
-#ifdef ROCKBOX
+#if defined(ROCKBOX) && !defined(SIMULATOR)
#if defined(CPU_ARM)
#define mult(A,B) \
({ \
@@ -48,11 +48,14 @@ static inline t_fixed mult_cf(t_fixed x, t_fixed y)
return t1;
}
#define idiv(a,b) ((((long long) (a) )<<fix1)/(long long) (b) )
+#else /* CPU_... */
+#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 /* CPU_... */
-#else /* ROCKBOX */
+#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 */
+#endif /* ROCKBOX && !SIMULATOR */
/* conversion macros */