[U-Boot] [PATCH v3 02/10] armv7: add miscellaneous utility macros

Aneesh V
2011-06-15T11:01:22Z

Dear Wolfgang,

On Wednesday 15 June 2011 02:50 PM, Wolfgang Denk wrote:
> Dear Aneesh V,
>
> In message<4DF871E3.8080307@ti.com> you wrote:
>>
>> So, the shift information is embedded in this mask and can be extracted
>> by finding the first set bit. But in reality my get_bit_field()
>> function indeed takes both arguments. So it's something like this:
>
> As stated before, I will not accept any bit filed macros like
> get_bit_field().

Will you accept something like this?

a_val = (reg & a_mask) >> a_shift;

best regards,
Aneesh