[systemd-devel] [PATCH] journal: u64log2 can be expressed just as __builtin_clzll(n) ^ 63U
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Thu Apr 4 21:37:09 PDT 2013
On Thu, Apr 04, 2013 at 08:09:50PM -0300, Cristian Rodríguez wrote:
> +static inline unsigned u64log2(uint64_t n) {
> +
> + return (n > 1) ? __builtin_clzll(n) ^ 63U : 0;
Applied.
Zbyszek
More information about the systemd-devel
mailing list