summaryrefslogtreecommitdiff
path: root/gcc/longlong.h
diff options
context:
space:
mode:
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-03 00:47:30 +0000
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-03 00:47:30 +0000
commit746062bcd4d3d72207bd707abc7309029222f822 (patch)
treecbd027da307f29492e94fa168a16a2f7e28648bd /gcc/longlong.h
parent78747de29011f2957a7a5e267d45620890df5212 (diff)
downloadgcc-746062bcd4d3d72207bd707abc7309029222f822.tar.gz
* config/cris/cris.h (TARGET_HAS_LZ, CLZ_DEFINED_VALUE_AT_ZERO):
Defined to describe availability and behavior of CLZ. * config/cris/cris.md (clzsi2): Implement using lz instruction. * config/cris/cris.opt: Tweak comment for "-metrax4". * config/cris/arit.c (LZ): When defined, define as __builtin_clz. * longlong.h [__CRIS__ && __CRIS_arch_version >= 3] (count_leading_zeros): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128034 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/longlong.h')
-rw-r--r--gcc/longlong.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/longlong.h b/gcc/longlong.h
index 0d8e01d3bf2..edb9bfd5f35 100644
--- a/gcc/longlong.h
+++ b/gcc/longlong.h
@@ -226,6 +226,10 @@ UDItype __umulsidi3 (USItype, USItype);
#define UDIV_TIME 100
#endif /* __arm__ */
+#if defined (__CRIS__) && __CRIS_arch_version >= 3
+#define count_leading_zeros(COUNT, X) ((COUNT) = __builtin_clz (X))
+#endif /* __CRIS__ */
+
#if defined (__hppa) && W_TYPE_SIZE == 32
#define add_ssaaaa(sh, sl, ah, al, bh, bl) \
__asm__ ("add %4,%5,%1\n\taddc %2,%3,%0" \