1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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

This commit is contained in:
Oliver Hahm 2013-04-16 14:00:49 +02:00
parent 3e5f91e728
commit e69da952de

View File

@ -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