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:
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…
Reference in New Issue
Block a user