@@ -1,3 +1,9 @@
+2011-02-20 H.J. Lu <hongjiu.lu@intel.com>
+
+ * longlong.h (count_leading_zeros): Use long long builtin for
+ x86-64.
+ (count_trailing_zeros): Likewise.
+
2011-02-19 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/47364
@@ -430,8 +430,8 @@ UDItype __umulsidi3 (USItype, USItype);
: "0" ((UDItype) (n0)), \
"1" ((UDItype) (n1)), \
"rm" ((UDItype) (dv)))
-#define count_leading_zeros(count, x) ((count) = __builtin_clzl (x))
-#define count_trailing_zeros(count, x) ((count) = __builtin_ctzl (x))
+#define count_leading_zeros(count, x) ((count) = __builtin_clzll (x))
+#define count_trailing_zeros(count, x) ((count) = __builtin_ctzll (x))
#define UMUL_TIME 40
#define UDIV_TIME 40
#endif /* x86_64 */