From: <svn...@op...> - 2009-04-19 11:53:27
|
Author: bricks Date: Sun Apr 19 13:53:18 2009 New Revision: 5619 URL: http://www.opensync.org/changeset/5619 Log: moved doxygen annotation from c file to internal header Modified: trunk/opensync/common/opensync_memory.c trunk/opensync/common/opensync_memory_internals.h Modified: trunk/opensync/common/opensync_memory.c ============================================================================== --- trunk/opensync/common/opensync_memory.c Sat Apr 18 00:26:25 2009 (r5618) +++ trunk/opensync/common/opensync_memory.c Sun Apr 19 13:53:18 2009 (r5619) @@ -50,15 +50,6 @@ g_free(ptr); } -/*! @brief Bit counting - * - * MIT HAKMEM Count, Bit counting in constant time and memory. - * - * result can't be greater than 32 on 32 Bit systems or 64 on 64 Bit systems - * @param u unsigned integer value to count bits - * @returns The bit counting result - * - */ unsigned char osync_bitcount(unsigned int u) { unsigned int uCount = u - ((u >> 1) & 033333333333) - ((u >> 2) & 011111111111); Modified: trunk/opensync/common/opensync_memory_internals.h ============================================================================== --- trunk/opensync/common/opensync_memory_internals.h Sat Apr 18 00:26:25 2009 (r5618) +++ trunk/opensync/common/opensync_memory_internals.h Sun Apr 19 13:53:18 2009 (r5619) @@ -21,6 +21,15 @@ #ifndef _OPENSYNC_MEMORY_INTERNALS_H #define _OPENSYNC_MEMORY_INTERNALS_H +/** @brief Bit counting + * + * MIT HAKMEM Count, Bit counting in constant time and memory. + * + * result can't be greater than 32 on 32 Bit systems or 64 on 64 Bit systems + * @param u unsigned integer value to count bits + * @returns The bit counting result + * + */ unsigned char osync_bitcount(unsigned int u); #endif /* _OPENSYNC_MEMORY_INTERNALS_H */ |