]> git.sur5r.net Git - u-boot/blobdiff - include/asm-ppc/bitops.h
Correct ffs/fls regression for PowerPC etc
[u-boot] / include / asm-ppc / bitops.h
index daa66cf9185bbc19967c22a4aa4f65629c472fcd..adaf0914921c41278c3cd49380244ed8843611cf 100644 (file)
@@ -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