X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Falloc%2Fbitops.c;h=978710eb1be13e74f1275bb9db198e4d87c8b698;hb=1bb69c76d265fc3f3dc81444fd739c46dca7cd59;hp=b408a20f0e579d8ce83228f1fc60a79a6f7e844f;hpb=6855b303efec30507ac046b5c02904538be0e4ea;p=ccan diff --git a/ccan/alloc/bitops.c b/ccan/alloc/bitops.c index b408a20f..978710eb 100644 --- a/ccan/alloc/bitops.c +++ b/ccan/alloc/bitops.c @@ -1,3 +1,4 @@ +/* Licensed under LGPLv2.1+ - see LICENSE file for details */ #include "bitops.h" #include "config.h" #include @@ -5,7 +6,7 @@ #include #include -unsigned int fls(unsigned long val) +unsigned int afls(unsigned long val) { BUILD_ASSERT(sizeof(val) == sizeof(u32) || sizeof(val) == sizeof(u64)); if (sizeof(val) == sizeof(u32)) @@ -15,7 +16,7 @@ unsigned int fls(unsigned long val) } /* FIXME: Move to bitops. */ -unsigned int ffsl(unsigned long val) +unsigned int affsl(unsigned long val) { #if HAVE_BUILTIN_FFSL /* This is significantly faster! */