style cleanup

This commit is contained in:
2013-10-21 23:35:08 +00:00
parent 4b0ff02aeb
commit 7c8c49a34a
10 changed files with 35 additions and 25 deletions

View File

@@ -3158,9 +3158,14 @@ uiBut *uiDefBut(uiBlock *block, int type, int retval, const char *str, int x, in
return but;
}
/* if _x_ is a power of two (only one bit) return the power,
/**
* if \a _x_ is a power of two (only one bit) return the power,
* otherwise return -1.
* (1<<findBitIndex(x))==x for powers of two.
*
* for powers of two:
* \code{.c}
* ((1 << findBitIndex(x)) == x);
* \endcode
*/
static int findBitIndex(unsigned int x)
{