X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fasm-ppc%2Fbitops.h;h=adaf0914921c41278c3cd49380244ed8843611cf;hb=61f2b38a17f5b21c59f2afe6cf1cbb5f28638cf9;hp=daa66cf9185bbc19967c22a4aa4f65629c472fcd;hpb=4e0018f1cf91b3f38f8478d6a174c198b72fe6df;p=u-boot diff --git a/include/asm-ppc/bitops.h b/include/asm-ppc/bitops.h index daa66cf918..adaf091492 100644 --- a/include/asm-ppc/bitops.h +++ b/include/asm-ppc/bitops.h @@ -178,6 +178,7 @@ static __inline__ int fls(unsigned int x) { return __ilog2(x) + 1; } +#define PLATFORM_FLS /** * fls64 - find last set bit in a 64-bit word @@ -230,6 +231,7 @@ extern __inline__ int ffs(int x) { return __ilog2(x & -x) + 1; } +#define PLATFORM_FFS /* * hweightN: returns the hamming weight (i.e. the number