diff options
author | Kevin Ryde <user42@zip.com.au> | 2002-03-19 01:36:59 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2002-03-19 01:36:59 +0100 |
commit | c25c436dcbc43033e105828d545ca13580bd473c (patch) | |
tree | 19e781fa5710f50ed195de0029d4f936b36036a0 /longlong.h | |
parent | 441a925de63c8755d1befa65be4c891eacd136da (diff) | |
download | gmp-c25c436dcbc43033e105828d545ca13580bd473c.tar.gz |
* longlong.h (count_trailing_zeros) [vax]: Add a version using ffs,
but commented out.
Diffstat (limited to 'longlong.h')
-rw-r--r-- | longlong.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/longlong.h b/longlong.h index d31198467..fdff795dd 100644 --- a/longlong.h +++ b/longlong.h @@ -1395,6 +1395,16 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO ((UWtype *, UWtype, UWtype, UWtype)); __asm__ ("ediv %3,%2,%0,%1" \ : "=g" (q), "=g" (r) : "g" (__x.__ll), "g" (d)); \ } while (0) +#if 0 +/* FIXME: This instruction appears to be unimplemented on some systems (vax + 8800 maybe). */ +#define count_trailing_zeros(count,x) \ + do { \ + __asm__ ("ffs 0, 31, %1, %0" \ + : "=g" ((USItype) (count)) \ + : "g" ((USItype) (x))); \ + } while (0) +#endif #endif /* __vax__ */ #if defined (__z8000__) && W_TYPE_SIZE == 16 |