27 Jun, 2018

1 commit

  • Add tests for the bitfield helpers. The constant ones will all
    be folded to nothing by the compiler (if everything is correct
    in the header file), and the variable ones do some tests against
    open-coding the necessary shifts.

    A few test cases that should fail/warn compilation are provided
    under ifdef.

    Suggested-by: Andy Shevchenko
    Reviewed-by: Andy Shevchenko
    Signed-off-by: Johannes Berg
    Signed-off-by: Kalle Valo

    Johannes Berg