[PATCH, AArch64] Use GCC builtins to count leading/tailing zeros

Yufeng Zhang Yufeng.Zhang@arm.com
Tue Jan 7 15:25:00 GMT 2014


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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20140107/753a038c/attachment.ksh>


More information about the Libc-alpha mailing list