diff options
author | hp <hp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-06 00:16:43 +0000 |
---|---|---|
committer | hp <hp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-06 00:16:43 +0000 |
commit | eab0bba7fa085f8d371466a058532e0341f32864 (patch) | |
tree | b471f48ac8fe10b8d1c9562b6086669ae666de75 /gcc/longlong.h | |
parent | f9612ead203999c4cb0e461ac31d5b6dbd1cd65a (diff) | |
download | gcc-eab0bba7fa085f8d371466a058532e0341f32864.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128165 138bc75d-0d04-0410-961f-82ee72b054a4
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 edb9bfd5f35..8350fbc2b45 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 |