Replace long with long long on __lzcnt64.
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 2 Aug 2011 00:31:07 +0000 (00:31 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 2 Aug 2011 00:31:07 +0000 (17:31 -0700)
2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/lzcntintrin.h (__lzcnt64): Replace long with
long long.

From-SVN: r177081

gcc/ChangeLog
gcc/config/i386/lzcntintrin.h

index ef13c1fcab0e33550e28e84f6a74d6adbb5f19f2..25ad12dc14d1751544b8fe710d62df08c5d75ad4 100644 (file)
@@ -1,3 +1,8 @@
+2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/i386/lzcntintrin.h (__lzcnt64): Replace long with
+       long long.
+
 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
            Joseph Myers  <joseph@codesourcery.com>
 
index 43008111576238ec8255e598c2b403405fde40a8..8df01d28ea3fed3dd3f7f340cad5413aa1705baa 100644 (file)
@@ -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