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
+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>
}
#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