From: H.J. Lu Date: Tue, 2 Aug 2011 00:31:07 +0000 (+0000) Subject: Replace long with long long on __lzcnt64. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4be16f6d271bfdc6767405fc10ccdbbd5b7cd67;p=gcc.git Replace long with long long on __lzcnt64. 2011-08-01 H.J. Lu * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long. From-SVN: r177081 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ef13c1fcab0..25ad12dc14d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-08-01 H.J. Lu + + * config/i386/lzcntintrin.h (__lzcnt64): Replace long with + long long. + 2011-08-01 Sebastian Pop Joseph Myers diff --git a/gcc/config/i386/lzcntintrin.h b/gcc/config/i386/lzcntintrin.h index 43008111576..8df01d28ea3 100644 --- a/gcc/config/i386/lzcntintrin.h +++ b/gcc/config/i386/lzcntintrin.h @@ -45,10 +45,10 @@ __lzcnt32 (unsigned int __X) } #ifdef __x86_64__ -extern __inline unsigned long __attribute__((__gnu_inline__, __always_inline__, __artificial__)) -__lzcnt64 (unsigned long __X) +extern __inline unsigned long long __attribute__((__gnu_inline__, __always_inline__, __artificial__)) +__lzcnt64 (unsigned long long __X) { - return __builtin_clzl (__X); + return __builtin_clzll (__X); } #endif