Ignore:
Timestamp:
Jan 2, 2021, 1:29:57 AM (5 years ago)
Author:
Paul Smedley
Message:

More code cleanups to eliminate warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/include/linux/log2.h

    r615 r622  
    1111{
    1212        return (n != 0 && ((n & (n - 1)) == 0));
    13 }
    14 
    15 /*
    16  * round up to nearest power of two
    17  */
    18 static inline
    19 unsigned long __roundup_pow_of_two(unsigned long n)
    20 {
    21         return 1UL << fls_long(n - 1);
    22 }
    23 
    24 /*
    25  * round down to nearest power of two
    26  */
    27 static inline
    28 unsigned long __rounddown_pow_of_two(unsigned long n)
    29 {
    30         return 1UL << (fls_long(n) - 1);
    3113}
    3214
Note: See TracChangeset for help on using the changeset viewer.