aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/libgcrypt/02-armasm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'tools/depends/target/libgcrypt/02-armasm.patch')
-rw-r--r--tools/depends/target/libgcrypt/02-armasm.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/depends/target/libgcrypt/02-armasm.patch b/tools/depends/target/libgcrypt/02-armasm.patch
new file mode 100644
index 0000000000..cb0f6b92f0
--- /dev/null
+++ b/tools/depends/target/libgcrypt/02-armasm.patch
@@ -0,0 +1,30 @@
+--- mpi/longlong.h 2005-07-29 09:31:17.000000000 -0400
++++ mpi/longlong.h 2013-01-20 15:18:22.000000000 -0500
+@@ -223,15 +223,24 @@
+ : "r" ((USItype)(a)), \
+ "r" ((USItype)(b)) \
+ : "r0", "r1", "r2")
+-#else
++#elif defined(__APPLE__)
+ #define umul_ppmm(xh, xl, a, b) \
+- __asm__ ("%@ Inlined umul_ppmm\n" \
+- "umull %r1, %r0, %r2, %r3" \
++ __asm__ ("@ Inlined umul_ppmm\n" \
++ "umull %1, %0, %2, %3" \
+ : "=&r" ((USItype)(xh)), \
+ "=r" ((USItype)(xl)) \
+ : "r" ((USItype)(a)), \
+ "r" ((USItype)(b)) \
+ : "r0", "r1")
++#else
++#define umul_ppmm(xh, xl, a, b) \
++ __asm__ ("%@ Inlined umul_ppmm\n" \
++ "umull %r1, %r0, %r2, %r3" \
++ : "=&r" ((USItype)(xh)), \
++ "=r" ((USItype)(xl)) \
++ : "r" ((USItype)(a)), \
++ "r" ((USItype)(b)) \
++ : "r0", "r1")
+ #endif
+ #define UMUL_TIME 20
+ #define UDIV_TIME 100