Changeset View
Changeset View
Standalone View
Standalone View
head/security/libgcrypt/files/patch-mpi_longlong.h
--- mpi/longlong.h.orig 2016-03-23 17:33:08 UTC | --- mpi/longlong.h.orig 2016-04-18 19:16:10 UTC | ||||
+++ mpi/longlong.h | +++ mpi/longlong.h | ||||
@@ -170,6 +170,7 @@ MA 02111-1307, USA. */ | @@ -174,6 +174,7 @@ MA 02111-1307, USA. */ | ||||
(pl) = __m0 * __m1; \ | (pl) = __m0 * __m1; \ | ||||
} while (0) | } while (0) | ||||
#define UMUL_TIME 46 | # define UMUL_TIME 46 | ||||
+#if 0 | +# if 0 | ||||
#ifndef LONGLONG_STANDALONE | # ifndef LONGLONG_STANDALONE | ||||
#define udiv_qrnnd(q, r, n1, n0, d) \ | # define udiv_qrnnd(q, r, n1, n0, d) \ | ||||
do { UDItype __r; \ | do { UDItype __r; \ | ||||
@@ -179,6 +180,7 @@ MA 02111-1307, USA. */ | @@ -183,6 +184,7 @@ MA 02111-1307, USA. */ | ||||
extern UDItype __udiv_qrnnd (); | extern UDItype __udiv_qrnnd (); | ||||
#define UDIV_TIME 220 | # define UDIV_TIME 220 | ||||
#endif /* LONGLONG_STANDALONE */ | # endif /* !LONGLONG_STANDALONE */ | ||||
+#endif /* 0 */ | +# endif /* 0 */ | ||||
#endif /* __alpha */ | #endif /* __alpha */ | ||||
/*************************************** | /*************************************** | ||||
@@ -1287,7 +1289,7 @@ typedef unsigned int UTItype __attribute | @@ -1293,7 +1295,7 @@ typedef unsigned int UTItype __attribute | ||||
"rJ" ((USItype)(al)), \ | "rJ" ((USItype)(al)), \ | ||||
"rI" ((USItype)(bl)) \ | "rI" ((USItype)(bl)) \ | ||||
__CLOBBER_CC) | __CLOBBER_CC) | ||||
-#if defined (__sparc_v8__) || defined(__sparcv8) | -# if defined (__sparc_v8__) | ||||
+#if defined (__sparc_v8__) || defined(__sparcv8) || defined (__sparc__) | +# if defined (__sparc_v8__) || defined (__sparc__) | ||||
/* Don't match immediate range because, 1) it is not often useful, | /* Don't match immediate range because, 1) it is not often useful, | ||||
2) the 'I' flag thinks of the range as a 13 bit signed interval, | 2) the 'I' flag thinks of the range as a 13 bit signed interval, | ||||
while we want to match a 13 bit interval, sign extended to 32 bits, | while we want to match a 13 bit interval, sign extended to 32 bits, |