On Sat, Jul 30, 2011 at 4:17 AM, Christian Lamparter <chunkeey@xxxxxxxxxxxxxx> wrote: > Wait a sec... I guess you misunderstood my post about the cut-off. > I meant that you can cut of at the bottom by using log2(max(1, val)). > This ensures that the log2 will always be >= 0 anyway. In fact log2(1) = 0. I get that now, but my point was that we also had to cap it for a higher value too. We now restrict the input to values within the data type and also ensure log2 will always be >= 0. Luis -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html