From e69da952de7e2b0ab405e03ea7b3ec6b5d036534 Mon Sep 17 00:00:00 2001 From: Oliver Hahm Date: Tue, 16 Apr 2013 14:00:49 +0200 Subject: [PATCH] * forbid the usage of '0' as an parameter for number_of_the_lowest_bit() --- core/include/bitarithm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/include/bitarithm.h b/core/include/bitarithm.h index 022e09b396..4ab6630fd3 100644 --- a/core/include/bitarithm.h +++ b/core/include/bitarithm.h @@ -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