A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd

pdbox: Reverted premature commit of Coldfire optimization.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26560 a1c6a512-1295-4272-9138-f99709370657

-17
-17
apps/plugins/pdbox/PDa/src/m_fixed.h
··· 31 31 lo; \ 32 32 }) 33 33 #define idiv(a,b) ((((long long) (a) )<<fix1)/(long long) (b) ) 34 - #elif defined(CPU_COLDFIRE) 35 - #define mult(a,b) mult_cf((a),(b)) 36 - static inline t_fixed mult_cf(t_fixed x, t_fixed y) 37 - { 38 - t_fixed t1, t2; 39 - asm volatile ( 40 - "mac.l %[x],%[y],%%acc0 \n" /* multiply */ 41 - "mulu.l %[y],%[x] \n" /* get low half, avoid emac stall */ 42 - "movclr.l %%acc0,%[t1] \n" /* get higher half */ 43 - "asl.l %[shl],%[t1] \n" /* hi <<= 13, plus one free */ 44 - "lsr.l %[shr],%[x] \n" /* (unsigned)lo >>= 18 */ 45 - "or.l %[x],%[t1] \n" /* combine result */ 46 - : [t1]"=&d"(t1), [t2]"=&d"(t2), [x]"+d"(x) 47 - : [y]"d"(y), [shl]"d"(31-fix1), [shr]"d"(fix1)); 48 - return t1; 49 - } 50 - #define idiv(a,b) ((((long long) (a) )<<fix1)/(long long) (b) ) 51 34 #else /* CPU_... */ 52 35 #define mult(a,b) (long long)(((long long) (a) * (long long) (b))>>fix1) 53 36 #define idiv(a,b) ((((long long) (a) )<<fix1)/(long long) (b) )