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:
parent
d812362905
commit
563f2602f4
7 changed files with 118 additions and 204 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue