patch-mpi_longlong_h 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. $OpenBSD: patch-mpi_longlong_h,v 1.8 2016/06/15 21:21:21 ajacoutot Exp $
  2. Fix build on sparc.
  3. --- mpi/longlong.h.orig Wed Jun 8 18:18:15 2016
  4. +++ mpi/longlong.h Wed Jun 15 23:15:28 2016
  5. @@ -174,6 +174,7 @@ MA 02111-1307, USA. */
  6. (pl) = __m0 * __m1; \
  7. } while (0)
  8. # define UMUL_TIME 46
  9. +#if 0
  10. # ifndef LONGLONG_STANDALONE
  11. # define udiv_qrnnd(q, r, n1, n0, d) \
  12. do { UDItype __r; \
  13. @@ -183,6 +184,7 @@ MA 02111-1307, USA. */
  14. extern UDItype __udiv_qrnnd ();
  15. # define UDIV_TIME 220
  16. # endif /* !LONGLONG_STANDALONE */
  17. +#endif /* 0 */
  18. #endif /* __alpha */
  19. /***************************************
  20. @@ -1293,7 +1295,7 @@ typedef unsigned int UTItype __attribute__ ((mode (TI)
  21. "rJ" ((USItype)(al)), \
  22. "rI" ((USItype)(bl)) \
  23. __CLOBBER_CC)
  24. -# if defined (__sparc_v8__) || defined(__sparcv8)
  25. +# if defined (__sparc_v8__) || defined(__sparcv8) || defined (__sparc__)
  26. /* Don't match immediate range because, 1) it is not often useful,
  27. 2) the 'I' flag thinks of the range as a 13 bit signed interval,
  28. while we want to match a 13 bit interval, sign extended to 32 bits,