Search Linux Wireless

Re: [PATCH 1/5] mac80211: use kernel-provided bit rotation/byteordering

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>  include/linux/bitops.h |   40 ++++++++++++++++++++++++++++++++++++++++

> +++ b/include/linux/bitops.h
> @@ -65,6 +65,46 @@ static inline __u32 ror32(__u32 word, unsigned int shift)
>  	return (word >> shift) | (word << (32 - shift));
>  }
>  
> +/**
> + * rol16 - rotate a 16-bit value left
> + * @word: value to rotate
> + * @shift: bits to roll
> + */
> +static inline __u16 rol16(__u16 word, unsigned int shift)

I don't think we can take that via wireless, and I think architectures
should be able to override this if they can optimise it (though the
compiler might be good enough...)

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux