X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyaffs_hweight.c;h=9851683d02be1382185b94c5c7c5a99c9c74e9c9;hp=d283b875eae137ae8ec0102c4aeaaa4b025088ec;hb=ce0a5fb9849b6dc0d1347709b28d3a34eefec662;hpb=fcc9631a249a467718a7ae67c58ae1ab29e5d034 diff --git a/direct/yaffs_hweight.c b/direct/yaffs_hweight.c index d283b87..9851683 100644 --- a/direct/yaffs_hweight.c +++ b/direct/yaffs_hweight.c @@ -1,7 +1,7 @@ /* * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * - * Copyright (C) 2002-2010 Aleph One Ltd. + * Copyright (C) 2002-2011 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Charles Manning @@ -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); }