Adrian Bunk wrote: > On Thu, May 17, 2007 at 11:56:56PM +0200, Rolf Eike Beer wrote: > > Fix roundup_pow_of_two(1) > > > > 1 is a power of two, therefore roundup_pow_of_two(1) should return 1. It > > does in case the argument is a variable but in case it's a constant it > > behaves wrong and returns 0. Probably nobody ever did it so this was > > never noticed. > > I'm not getting the problem. > 2^0 = 1 Yes. But it returned 0 (not 1 << 0). Eike
Attachment:
signature.asc
Description: This is a digitally signed message part.
- Follow-Ups:
- Re: [PATCH] Fix roundup_pow_of_two(1)
- From: Adrian Bunk <[email protected]>
- Re: [PATCH] Fix roundup_pow_of_two(1)
- References:
- [PATCH] Fix roundup_pow_of_two(1)
- From: Rolf Eike Beer <[email protected]>
- Re: [PATCH] Fix roundup_pow_of_two(1)
- From: Adrian Bunk <[email protected]>
- [PATCH] Fix roundup_pow_of_two(1)
- Prev by Date: Re: [PATCH -mm] 1/2: MMCONFIG: validate against ACPI motherboard resources
- Next by Date: Re: RTC_DRV_CMOS can break userspace interface
- Previous by thread: Re: [PATCH] Fix roundup_pow_of_two(1)
- Next by thread: Re: [PATCH] Fix roundup_pow_of_two(1)
- Index(es):