This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PING] [PATCH, AArch64] Use GCC builtins to count leading/tailing zeros
- From: Yufeng Zhang <Yufeng dot Zhang at arm dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: Marcus Shawcroft <Marcus dot Shawcroft at arm dot com>
- Date: Tue, 22 Apr 2014 17:09:56 +0100
- Subject: [PING] [PATCH, AArch64] Use GCC builtins to count leading/tailing zeros
- Authentication-results: sourceware.org; auth=none
- References: <52CC2CB0 dot 3080309 at arm dot com>
Ping~
OK for stage-1?
The original patch was posted here:
http://gcc.gnu.org/ml/gcc-patches/2014-01/msg00286.html
and the glibc patch was approved here:
http://sourceware.org/ml/libc-alpha/2014-01/msg00120.html
Thanks,
Yufeng
On 01/07/14 16:34, Yufeng Zhang wrote:
Hi,
This patch is to sync up include/longlong.h with its glibc peer after
the proposed change here:
http://sourceware.org/ml/libc-alpha/2014-01/msg00114.html
The patch defines a number of macros in stdlib/longlong.h to use GCC
builtins __builtin_clz* to implement the __clz* and __ctz* functions on
AArch64.
OK for the mainline?
Thanks,
Yufeng
include/
* longlong.h (count_leading_zeros, count_trailing_zeros)
(COUNT_LEADING_ZEROS_0): Define for aarch64.