X-Git-Url: http://aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyaffs_hweight.c;fp=direct%2Fyaffs_hweight.c;h=9851683d02be1382185b94c5c7c5a99c9c74e9c9;hp=c00517e3bbf398326221d5b6438b67df70200818;hb=99b65b5903a088ae36a4fd158606009382d93163;hpb=a608236b1929a912dea67fb2afc92784c4a454e7 diff --git a/direct/yaffs_hweight.c b/direct/yaffs_hweight.c index c00517e..9851683 100644 --- a/direct/yaffs_hweight.c +++ b/direct/yaffs_hweight.c @@ -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); }