diff options
author | Jesper Nilsson <jesper.nilsson@axis.com> | 2007-09-06 00:16:43 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2007-09-06 00:16:43 +0000 |
commit | 9ef4a0cd837d2820667243dd921bbda903330afe (patch) | |
tree | b471f48ac8fe10b8d1c9562b6086669ae666de75 /gcc/longlong.h | |
parent | cfb6473a78fa39128121aa2b178c88911754ab2d (diff) | |
download | gcc-9ef4a0cd837d2820667243dd921bbda903330afe.zip gcc-9ef4a0cd837d2820667243dd921bbda903330afe.tar.gz gcc-9ef4a0cd837d2820667243dd921bbda903330afe.tar.bz2 |
cris: longlong.h (count_trailing_zeros): Defined.
* longlong.h [__CRIS_arch_version >= 8] (count_trailing_zeros):
Defined.
* config/cris/cris.md (ctzsi2, cris_swap_bits): Implemented.
* config/cris/cris.h (CTZ_DEFINED_VALUE_AT_ZERO): Defined.
From-SVN: r128165
Diffstat (limited to 'gcc/longlong.h')
-rw-r--r-- | gcc/longlong.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/longlong.h b/gcc/longlong.h index edb9bfd..8350fbc 100644 --- a/gcc/longlong.h +++ b/gcc/longlong.h @@ -228,6 +228,9 @@ UDItype __umulsidi3 (USItype, USItype); #if defined (__CRIS__) && __CRIS_arch_version >= 3 #define count_leading_zeros(COUNT, X) ((COUNT) = __builtin_clz (X)) +#if __CRIS_arch_version >= 8 +#define count_trailing_zeros(COUNT, X) ((COUNT) = __builtin_ctz (X)) +#endif #endif /* __CRIS__ */ #if defined (__hppa) && W_TYPE_SIZE == 32 |