[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] ffs vs __builtin_ffs



At 10:53 +0000 on 31 Oct (1383213226), Andrew Cooper wrote:
> Would it be acceptable to provide a patch which does a straight replace
> of the static inline function with a define?  __builtin_ffs is supported
> in all compilers we support, but there does not appear to any sane way
> to detect the presence of the builtin.

Seems like a good idea to me, though it'd have to be __builtin_ffsl()
as the existing ffs() takes an unsigned long.

Tim.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.