summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/fixedpoint.h
diff options
context:
space:
mode:
authorKevin Ferrare <kevin@rockbox.org>2008-01-23 08:25:04 +0000
committerKevin Ferrare <kevin@rockbox.org>2008-01-23 08:25:04 +0000
commitebe5acfb9dd80bfce2c915a568e2c86244b67510 (patch)
treec7c6894575e6c5b3d318556cc439d5aa8783061a /apps/plugins/lib/fixedpoint.h
parent8a91c19f7003a34a650b6baf52b23cbdaf767919 (diff)
downloadrockbox-ebe5acfb9dd80bfce2c915a568e2c86244b67510.tar.gz
rockbox-ebe5acfb9dd80bfce2c915a568e2c86244b67510.zip
Fixed the problems on the new version of the fire plugin (so repush it), added new actions to the pluginlib_actions to fix the keymaps on the Sansa e200 for the clock and fire plugins. Also slightly simplified the metronome plugin's key mapping with those new actions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16148 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/fixedpoint.h')
-rw-r--r--apps/plugins/lib/fixedpoint.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/lib/fixedpoint.h b/apps/plugins/lib/fixedpoint.h
index 719915709a..a9650e7977 100644
--- a/apps/plugins/lib/fixedpoint.h
+++ b/apps/plugins/lib/fixedpoint.h
@@ -24,3 +24,11 @@ long fsqrt(long a, unsigned int fracbits);
24long cos_int(int val); 24long cos_int(int val);
25long sin_int(int val); 25long sin_int(int val);
26long flog(int x); 26long flog(int x);
27
28/* fast unsigned multiplication (16x16bit->32bit or 32x32bit->32bit,
29 * whichever is faster for the architecture) */
30#ifdef CPU_ARM
31#define FMULU(a, b) ((uint32_t) (((uint32_t) (a)) * ((uint32_t) (b))))
32#else /* SH1, coldfire */
33#define FMULU(a, b) ((uint32_t) (((uint16_t) (a)) * ((uint16_t) (b))))
34#endif