aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2011-08-02 00:31:07 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2011-08-01 17:31:07 -0700
commitd4be16f6d271bfdc6767405fc10ccdbbd5b7cd67 (patch)
tree007c4865867126e83d68479e9ee7ad703016f0f1 /gcc
parent88b4b6834fe64955838a150a6dd39d7bc080a3b1 (diff)
downloadgcc-d4be16f6d271bfdc6767405fc10ccdbbd5b7cd67.zip
gcc-d4be16f6d271bfdc6767405fc10ccdbbd5b7cd67.tar.gz
gcc-d4be16f6d271bfdc6767405fc10ccdbbd5b7cd67.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/lzcntintrin.h6
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ef13c1f..25ad12d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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>
diff --git a/gcc/config/i386/lzcntintrin.h b/gcc/config/i386/lzcntintrin.h
index 4300811..8df01d2 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