[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Libcurl-ssl / RPM package
On Wed, 16 Jun 2010, Miro Kropacek wrote:
Is it with Howard's patch included?
Yes, unless I have something hosed with the patch.....
---
diff -rup openssl-1.0.0/crypto/bn/bn_div.c
openssl-1.0.0-mint/crypto/bn/bn_div.c
--- openssl-1.0.0/crypto/bn/bn_div.c Tue Feb 23 05:36:30 2010
+++ openssl-1.0.0-mint/crypto/bn/bn_div.c Fri May 21 18:13:56 2010
@@ -164,6 +164,21 @@ int BN_div(BIGNUM *dv, BIGNUM *rem, cons
q; \
})
# define REMAINDER_IS_ALREADY_CALCULATED
+# elif defined(__mc68020__)
+ /* Same rationale as for i386. On the 68020-60/CPU32 the divu
+ * instruction will take a 64 bit dividend in a register pair
+ * and overwrite that pair with the remainder:quotient.
+ * hyc@highlandsun.com
+ */
+# define bn_div_words(n0,n1,d0) \
+ ({ asm volatile ( \
+ "divu.l %4,%2:%3" \
+ : "=d"(rem), "=d"(q) \
+ : "0"(n0), "1"(n1), "d"(d0) \
+ : "cc"); \
+ q; \
+ })
+# define REMAINDER_IS_ALREADY_CALCULATED
# endif /* __<cpu> */
# endif /* __GNUC__ */
#endif /* OPENSSL_NO_ASM */