lkml.org 
[lkml]   [2007]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH] Fix get_order() [try #2]
    Date
    H. Peter Anvin <hpa@zytor.com> wrote:

    > Eh? roundup_pow_of_two(1) should be 0; 2^0 = 1.

    Nonono.

    roundup_pow_of_two(0) => ?
    roundup_pow_of_two(1) => 1
    roundup_pow_of_two(2) => 2
    roundup_pow_of_two(3) => 4
    roundup_pow_of_two(4) => 4
    roundup_pow_of_two(5) => 8
    roundup_pow_of_two(6) => 8
    roundup_pow_of_two(7) => 8
    roundup_pow_of_two(8) => 8
    roundup_pow_of_two(9) => 16
    roundup_pow_of_two(10) => 16
    roundup_pow_of_two(11) => 16
    ...

    David
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-03-06 19:49    [W:2.930 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site