X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyaffs_hweight.c;h=7e2c250a598138d59a904af52d94c0d02c61fa51;hp=c00517e3bbf398326221d5b6438b67df70200818;hb=d13e6146b4ccadd7aab2033b6cf9f4551d6abd71;hpb=472c70456396a6f2019bfabe83bd292782dbd978 diff --git a/direct/yaffs_hweight.c b/direct/yaffs_hweight.c index c00517e..7e2c250 100644 --- a/direct/yaffs_hweight.c +++ b/direct/yaffs_hweight.c @@ -10,10 +10,10 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ - - /* These functions have been renamed to hweightxx to match the - * equivaqlent functions in the Linux kernel. - */ + +/* These functions have been renamed to hweightxx to match the + * equivaqlent functions in the Linux kernel. + */ #include "yaffs_hweight.h" @@ -45,9 +45,9 @@ int yaffs_hweight8(u8 x) int yaffs_hweight32(u32 x) { - return hweight8(x & 0xff) + - hweight8((x >> 8) & 0xff) + - hweight8((x >> 16) & 0xff) + - hweight8((x >> 24) & 0xff); + return yaffs_hweight8(x & 0xff) + + yaffs_hweight8((x >> 8) & 0xff) + + yaffs_hweight8((x >> 16) & 0xff) + + yaffs_hweight8((x >> 24) & 0xff); }