diff options
author | Kevin Ryde <user42@zip.com.au> | 2000-11-26 00:30:33 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2000-11-26 00:30:33 +0100 |
commit | e565380153d7fc58106de772dda3485badc04467 (patch) | |
tree | ae3d53a7724ca00ad156a7b79671458b4632b9d3 /longlong.h | |
parent | 4a6d35ca4ff60bf7b3d5b7fcf4a5543369c8c22c (diff) | |
download | gmp-e565380153d7fc58106de772dda3485badc04467.tar.gz |
* longlong.h (alpha): Use udiv_qrnnd and count_leading_zeros on all
compilers, not just gcc.
Diffstat (limited to 'longlong.h')
-rw-r--r-- | longlong.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/longlong.h b/longlong.h index 5ed4c829b..e9171576a 100644 --- a/longlong.h +++ b/longlong.h @@ -114,6 +114,15 @@ MA 02111-1307, USA. */ (pl) = __m0 * __m1; \ } while (0) #define UMUL_TIME 18 +#else /* ! __GNUC__ */ +#include <machine/builtins.h> +#define umul_ppmm(ph, pl, m0, m1) \ + do { \ + UDItype __m0 = (m0), __m1 = (m1); \ + (ph) = __UMULH (m0, m1); \ + (pl) = __m0 * __m1; \ + } while (0) +#endif #ifndef LONGLONG_STANDALONE #define udiv_qrnnd(q, r, n1, n0, d) \ do { UDItype __di; \ @@ -126,15 +135,6 @@ long __MPN(count_leading_zeros) (); #define count_leading_zeros(count, x) \ ((count) = __MPN(count_leading_zeros) (x)) #endif /* LONGLONG_STANDALONE */ -#else /* ! __GNUC__ */ -#include <machine/builtins.h> -#define umul_ppmm(ph, pl, m0, m1) \ - do { \ - UDItype __m0 = (m0), __m1 = (m1); \ - (ph) = __UMULH (m0, m1); \ - (pl) = __m0 * __m1; \ - } while (0) -#endif #endif /* __alpha */ #if defined (__hppa) && W_TYPE_SIZE == 64 |