diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2007-08-02 07:40:57 -0400 |
---|---|---|
committer | Sandra Loosemore <sandra@gcc.gnu.org> | 2007-08-02 07:40:57 -0400 |
commit | 44f9fcef63f933908fd11e3beb4dc5298d678191 (patch) | |
tree | a6146e5260844c570c9f5d1033dd33dfc08e3d24 /gcc/longlong.h | |
parent | e861dea3753af94f70a960b5bb7ec340c0f435ef (diff) | |
download | gcc-44f9fcef63f933908fd11e3beb4dc5298d678191.zip gcc-44f9fcef63f933908fd11e3beb4dc5298d678191.tar.gz gcc-44f9fcef63f933908fd11e3beb4dc5298d678191.tar.bz2 |
longlong.h [__mips__] (count_leading_zeros, [...]): Define for MIPS32 and MIPS64.
2007-08-02 Sandra Loosemore <sandra@codesourcery.com>
Nigel Stephens <nigel@mips.com>
gcc/
* longlong.h [__mips__] (count_leading_zeros, COUNT_LEADING_ZEROS_0):
Define for MIPS32 and MIPS64.
Co-Authored-By: Nigel Stephens <nigel@mips.com>
From-SVN: r127159
Diffstat (limited to 'gcc/longlong.h')
-rw-r--r-- | gcc/longlong.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/longlong.h b/gcc/longlong.h index 87021d0..0d8e01d 100644 --- a/gcc/longlong.h +++ b/gcc/longlong.h @@ -624,6 +624,11 @@ UDItype __umulsidi3 (USItype, USItype); "d" ((USItype) (v))) #define UMUL_TIME 10 #define UDIV_TIME 100 + +#if (__mips == 32 || __mips == 64) && ! __mips16 +#define count_leading_zeros(COUNT,X) ((COUNT) = __builtin_clz (X)) +#define COUNT_LEADING_ZEROS_0 32 +#endif #endif /* __mips__ */ #if defined (__ns32000__) && W_TYPE_SIZE == 32 |