From d0f54a4100364b729e29d2c2a312e222a914a609 Mon Sep 17 00:00:00 2001 From: Michael Mohr Date: Tue, 28 Dec 2010 14:25:35 -0800 Subject: [PATCH] document what must be fixed for armeabi --- src/mont/fp_montgomery_reduce.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mont/fp_montgomery_reduce.c b/src/mont/fp_montgomery_reduce.c index 8ed733b..396087a 100644 --- a/src/mont/fp_montgomery_reduce.c +++ b/src/mont/fp_montgomery_reduce.c @@ -352,6 +352,16 @@ asm( \ #define LOOP_START \ mu = c[x] * mp +/* +These will need a complete rewrite for armeabi: + * ADDS is not supported in Thumb16 mode + * Thumb does not support conditional execution (MOVCS/MOVCC) + * armv5te+xscale does not support UMLAL +ADDS - add and set condition flags (bottom of page 16, arm_inst.pdf) +MOVCS / MOVCC - move if carry bit is set / clear +UMLAL RdLo, RdHi, Rn, Rm - unsigned multiply Rn and Rm, then + add resulting 64-bit value to (RdHi,RdLo) +*/ #define INNERMUL \ asm( \ " LDR r0,%1 \n\t" \