summaryrefslogtreecommitdiff
path: root/apps/codecs/libtremor/floor1.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2009-12-10 21:43:59 +0000
committerNils Wallménius <nils@rockbox.org>2009-12-10 21:43:59 +0000
commitc0dc3c7a74e3eaaf28b3c18c5cdc3077a20e1dda (patch)
tree6d88a32ad8bc2bf6f5c4305f09ccff594a9d3b8d /apps/codecs/libtremor/floor1.c
parent75be896c07492dea72cb3328abee3a810755778a (diff)
downloadrockbox-c0dc3c7a74e3eaaf28b3c18c5cdc3077a20e1dda.tar.gz
rockbox-c0dc3c7a74e3eaaf28b3c18c5cdc3077a20e1dda.zip
Remove inline asm that hasn't been useful for years, no speed difference
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23928 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libtremor/floor1.c')
-rw-r--r--apps/codecs/libtremor/floor1.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/apps/codecs/libtremor/floor1.c b/apps/codecs/libtremor/floor1.c
index fa81b0d197..138f718651 100644
--- a/apps/codecs/libtremor/floor1.c
+++ b/apps/codecs/libtremor/floor1.c
@@ -197,19 +197,7 @@ static vorbis_look_floor *floor1_look(vorbis_dsp_state *vd,vorbis_info_mode *mi,
197static int render_point(int x0,int x1,int y0,int y1,int x){ 197static int render_point(int x0,int x1,int y0,int y1,int x){
198 y0&=0x7fff; /* mask off flag */ 198 y0&=0x7fff; /* mask off flag */
199 y1&=0x7fff; 199 y1&=0x7fff;
200#if defined(CPU_COLDFIRE)
201 asm volatile ("sub.l %[x0],%[x];"
202 "sub.l %[y0],%[y1];"
203 "sub.l %[x0],%[x1];"
204 "muls.l %[y1],%[x];"
205 "divs.l %[x1],%[x];"
206 "add.l %[y0],%[x];"
207 : [x] "+d" (x), [x1] "+d" (x1), [y1] "+d" (y1)
208 : [x0] "r" (x0), [y0] "r" (y0) );
209 return x;
210#else
211 return y0+((y1-y0)*(x-x0))/(x1-x0); 200 return y0+((y1-y0)*(x-x0))/(x1-x0);
212#endif
213} 201}
214 202
215#ifdef _LOW_ACCURACY_ 203#ifdef _LOW_ACCURACY_