* forbid the usage of '0' as an parameter for number_of_the_lowest_bit()

dev/timer
Oliver Hahm 11 years ago
parent 3e5f91e728
commit e69da952de

@ -77,7 +77,8 @@ unsigned number_of_highest_bit(unsigned v);
/**
* @brief Returns the number of the lowest '1' bit in a value
* @param[in] v Input value
* @param[in] v Input value - must be unequal to '0', otherwise the
* function will produce an infinite loop
* @return Bit Number
*
* Source: http://graphics.stanford.edu/~seander/bithacks.html#IntegerLogObvious

Loading…
Cancel
Save