Update of /cvsroot/gtk-gnutella/gtk-gnutella-current/src/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6166
Modified Files:
misc.h
Log Message:
Added doxygen comment for is_pow2().
Index: misc.h
===================================================================
RCS file: /cvsroot/gtk-gnutella/gtk-gnutella-current/src/lib/misc.h,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- misc.h 25 Jun 2005 01:37:43 -0000 1.43
+++ misc.h 27 Jun 2005 20:05:42 -0000 1.44
@@ -378,6 +378,12 @@
gboolean file_exists(const gchar *);
guint32 next_pow2(guint32 n);
+/**
+ * Checks whether the given value is a power of 2.
+ *
+ * @param value a 32-bit integer
+ * @return TRUE if ``value'' is a power of 2. Otherwise FALSE.
+ */
static inline G_GNUC_CONST gboolean
is_pow2(guint32 value)
{
|