This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH, AArch64] Use GCC builtins to count leading/tailing zeros
- From: Yufeng Zhang <Yufeng dot Zhang at arm dot com>
- To: Marcus Shawcroft <Marcus dot Shawcroft at arm dot com>
- Cc: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>, Richard Earnshaw <Richard dot Earnshaw at arm dot com>
- Date: Tue, 22 Apr 2014 17:07:37 +0100
- Subject: Re: [PATCH, AArch64] Use GCC builtins to count leading/tailing zeros
- Authentication-results: sourceware.org; auth=none
- References: <52CC1C70 dot 6020700 at arm dot com>
Hi Marcus,
Can you help me commit this patch please?
The patch was originally posted here:
http://sourceware.org/ml/libc-alpha/2014-01/msg00114.html
and approved for 2.20 here:
http://sourceware.org/ml/libc-alpha/2014-01/msg00120.html
and the corresponding gcc patch was posted here:
http://gcc.gnu.org/ml/gcc-patches/2014-01/msg00286.html
Thanks,
Yufeng
On 01/07/14 15:25, Yufeng Zhang wrote:
Hi,
This patch defines a number of macros in stdlib/longlong.h to use GCC
builtins __builtin_clz* to implement the __clz* and __ctz* functions.
OK for the mainline?
Thanks,
Yufeng
* stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
(COUNT_LEADING_ZEROS_0): Define for aarch64.