Dear Wolfgang, On Wednesday 15 June 2011 02:50 PM, Wolfgang Denk wrote: > Dear Aneesh V, > > In message<4df871e3.8080...@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 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot