23 Dec, 2014

1 commit

  • this change add CONFIG_HAVE_ARCH_BITREVERSE config option,
    so that we can use some architecture's bitrev hardware instruction
    to do bitrev operation.

    Introduce __constant_bitrev* macro for constant bitrev operation.

    Change __bitrev16() __bitrev32() to be inline function,
    don't need export symbol for these tiny functions.

    Signed-off-by: Yalin Wang
    Acked-by: Will Deacon
    Signed-off-by: Russell King

    Yalin Wang
     

07 Jun, 2008

1 commit

  • Bluetooth will be able to use this.

    Signed-off-by: Harvey Harrison
    Cc: Marcel Holtmann
    Cc: Dave Young
    Cc: Akinobu Mita
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Harvey Harrison
     

11 Dec, 2006

1 commit


09 Dec, 2006

1 commit

  • This patch provides two bit reverse functions and bit reverse table.

    - reverse the order of bits in a u32 value

    u8 bitrev8(u8 x);

    - reverse the order of bits in a u32 value

    u32 bitrev32(u32 x);

    - byte reverse table

    const u8 byte_rev_table[256];

    Signed-off-by: Akinobu Mita
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Akinobu Mita