OSDN Git Service

Replace long with long long on __lzcnt64.
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Aug 2011 00:31:07 +0000 (00:31 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Aug 2011 00:31:07 +0000 (00:31 +0000)
2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177081 138bc75d-0d04-0410-961f-82ee72b054a4

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

index ef13c1f..25ad12d 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 4300811..8df01d2 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