1
0
Fork 0
forked from len0rd/rockbox

Small optimisation for mandelbrot on arm targets: Help the compiler allocating registers.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17807 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2008-06-27 16:06:28 +00:00
parent 39aaa2f2b5
commit 71cc98605f

View file

@ -443,11 +443,11 @@ static inline long muls32_asr26(long a, long b)
"mov %[r], %[r], lsr #26 \n"
"orr %[r], %[r], %[t1], lsl #6 \n"
: /* outputs */
[r] "=&r"(r),
[t1]"=&r"(t1)
[r] "=&r,&r,&r"(r),
[t1]"=&r,&r,&r"(t1)
: /* inputs */
[a] "r" (a),
[b] "r" (b)
[a] "%r,%r,%r" (a),
[b] "r,0,1" (b)
);
return r;
}
@ -615,7 +615,7 @@ void calc_mandelbrot_high_prec(void)
y2 = MULS32_ASR26(y, y);
if (x2 + y2 > (4L<<26)) break;
y = 2 * MULS32_ASR26(x, y) + b;
x = x2 - y2 + a;
}