Skip to content

Commit

Permalink
longlong.h on mips with clang
Browse files Browse the repository at this point in the history
* mpi/longlong.h [__mips__]: Use C-language version with clang.
--
clang doesn't recognise =l / =h assembly operand specifiers but apparently
handles C version well.

[jk: add changelog, rebase on libgcrypt repository, reformat changed line so it
 does not go over 80 characters]
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
  • Loading branch information
phcoder authored and jkivilin committed Nov 29, 2013
1 parent 3ef21e7 commit 1ecbd0b
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 @@ -749,7 +749,8 @@ extern USItype __udiv_qrnnd ();
************** MIPS *****************
***************************************/
#if defined (__mips__) && W_TYPE_SIZE == 32
#if (__GNUC__ >= 5) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
#if defined (__clang__) || (__GNUC__ >= 5) || (__GNUC__ == 4 && \
__GNUC_MINOR__ >= 4)
#define umul_ppmm(w1, w0, u, v) \
do { \
UDItype _r; \
Expand Down

0 comments on commit 1ecbd0b

Please sign in to comment.