diff options
author | Werner Koch <wk@gnupg.org> | 2000-07-17 14:32:20 +0000 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2000-07-17 14:32:20 +0000 |
commit | 487fe72494051de4a7e513c15b6a895dcd0164ce (patch) | |
tree | 82411404fe06df0c1c98193275ec2055c52ec016 /mpi/longlong.h | |
parent | 74386120dad6b3da62db37f7044267c8ef34689b (diff) | |
download | libgcrypt-487fe72494051de4a7e513c15b6a895dcd0164ce.tar.gz |
See ChangeLog: Mon Jul 17 16:35:47 CEST 2000 Werner Koch
Diffstat (limited to 'mpi/longlong.h')
-rw-r--r-- | mpi/longlong.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mpi/longlong.h b/mpi/longlong.h index c9243557..e36beae4 100644 --- a/mpi/longlong.h +++ b/mpi/longlong.h @@ -199,6 +199,8 @@ extern UDItype __udiv_qrnnd (); "rI" ((USItype)(bh)), \ "r" ((USItype)(al)), \ "rI" ((USItype)(bl))) +#ifdef __ARM_ARCH_3__ +/* SAM This does not work on arm4 */ #define umul_ppmm(xh, xl, a, b) \ __asm__ ("%@ Inlined umul_ppmm mov %|r0, %2, lsr #16 @@ -218,6 +220,18 @@ extern UDItype __udiv_qrnnd (); : "r" ((USItype)(a)), \ "r" ((USItype)(b)) \ : "r0", "r1", "r2") +#elif __ARM_ARCH_4__ +#define umul_ppmm(xh, xl, a, b) \ + __asm__ ("%@ Inlined umul_ppmm + umull %r1, %r0, %r2, %r3" \ + : "=&r" ((USItype)(xh)), \ + "=r" ((USItype)(xl)) \ + : "r" ((USItype)(a)), \ + "r" ((USItype)(b)) \ + : "r0", "r1") +#else +#error Untested architecture +#endif #define UMUL_TIME 20 #define UDIV_TIME 100 #endif /* __arm__ */ |