summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
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