1
0
Fork 0
forked from len0rd/rockbox

Fractals: Have helper functions in header file to keep them inlined

- Should fix performance degradation caused because of the split
- Thanks for all who noticed (amiconn et al.)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24266 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Tomer Shalev 2010-01-17 22:03:36 +00:00
parent d812362905
commit 563f2602f4
7 changed files with 118 additions and 204 deletions

View file

@ -22,6 +22,21 @@
#ifndef _CPU_ARM_H
#define _CPU_ARM_H
inline long muls32_asr26(long a, long b);
inline static long muls32_asr26(long a, long b)
{
long r, t1;
asm (
"smull %[r], %[t1], %[a], %[b] \n"
"mov %[r], %[r], lsr #26 \n"
"orr %[r], %[r], %[t1], lsl #6 \n"
: /* outputs */
[r] "=&r,&r,&r"(r),
[t1]"=&r,&r,&r"(t1)
: /* inputs */
[a] "%r,%r,%r" (a),
[b] "r,0,1" (b)
);
return r;
}
#endif