X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyaffs_hweight.c;h=13e62e427bd7f7e0b1a8cbb5595bab482a2e79ea;hp=c00517e3bbf398326221d5b6438b67df70200818;hb=2403de669c3c3deeb5efbadec2990c1f757e8281;hpb=6648cbf52d6695755941ff8607fd7a0cda542e05 diff --git a/direct/yaffs_hweight.c b/direct/yaffs_hweight.c index c00517e..13e62e4 100644 --- a/direct/yaffs_hweight.c +++ b/direct/yaffs_hweight.c @@ -1,8 +1,7 @@ /* * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * - * Copyright (C) 2002-2011 Aleph One Ltd. - * for Toby Churchill Ltd and Brightstar Engineering + * Copyright (C) 2002-2018 Aleph One Ltd. * * Created by Charles Manning * @@ -10,10 +9,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 +44,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); }