Further extensions for VxWorks wrapper
[yaffs2.git] / direct / yaffs_hweight.c
index d283b875eae137ae8ec0102c4aeaaa4b025088ec..7e2c250a598138d59a904af52d94c0d02c61fa51 100644 (file)
@@ -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 <charles@aleph1.co.uk>
  * 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);
 }