summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/mandelbrot.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/mandelbrot.c b/apps/plugins/mandelbrot.c
index 8b045e7..793fbdf 100644
--- a/apps/plugins/mandelbrot.c
+++ b/apps/plugins/mandelbrot.c
@@ -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;
}