diff options
author | Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com> | 2013-11-22 05:24:44 +0100 |
---|---|---|
committer | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2013-11-29 11:52:00 +0200 |
commit | 1ecbd0bca31d462719a2a6590c1d03244e76ef89 (patch) | |
tree | 7076c84ce4d898ff6c83dbd52443ea50a59ac1ab /mpi | |
parent | 3ef21e7e1b8003db9792155044db95f9d9ced184 (diff) | |
download | libgcrypt-1ecbd0bca31d462719a2a6590c1d03244e76ef89.tar.gz |
longlong.h on mips with clang
* 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>
Diffstat (limited to 'mpi')
-rw-r--r-- | mpi/longlong.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mpi/longlong.h b/mpi/longlong.h index 8c8260e5..90b0fd55 100644 --- a/mpi/longlong.h +++ b/mpi/longlong.h @@ -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; \ |