Skip to content

Commit

Permalink
mpi: Fix for buidling for MIPS64 with Clang
Browse files Browse the repository at this point in the history
* mpi/longlong.h [MIPS64][__clang__]: Use the C version like we
already do for 32 bit MIPS.
--

GnuPG-bug-id: 3915
Signed-off-by: Werner Koch <wk@gnupg.org>
  • Loading branch information
dd9jn committed Apr 17, 2018
1 parent 3e3b520 commit e7ae0ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mpi/longlong.h
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,8 @@ extern USItype __udiv_qrnnd ();
************** MIPS/64 **************
***************************************/
#if (defined (__mips) && __mips >= 3) && W_TYPE_SIZE == 64
# if (__GNUC__ >= 5) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
# if defined (__clang__) || (__GNUC__ >= 5) || (__GNUC__ == 4 && \
__GNUC_MINOR__ >= 4)
typedef unsigned int UTItype __attribute__ ((mode (TI)));
# define umul_ppmm(w1, w0, u, v) \
do { \
Expand Down

0 comments on commit e7ae0ae

Please sign in to comment.