Commit d4be16f6 by H.J. Lu Committed by H.J. Lu

Replace long with long long on __lzcnt64.

2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>

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

From-SVN: r177081
parent 88b4b683
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> 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
Joseph Myers <joseph@codesourcery.com> Joseph Myers <joseph@codesourcery.com>
......
...@@ -45,10 +45,10 @@ __lzcnt32 (unsigned int __X) ...@@ -45,10 +45,10 @@ __lzcnt32 (unsigned int __X)
} }
#ifdef __x86_64__ #ifdef __x86_64__
extern __inline unsigned long __attribute__((__gnu_inline__, __always_inline__, __artificial__)) extern __inline unsigned long long __attribute__((__gnu_inline__, __always_inline__, __artificial__))
__lzcnt64 (unsigned long __X) __lzcnt64 (unsigned long long __X)
{ {
return __builtin_clzl (__X); return __builtin_clzll (__X);
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment