Closed attdona closed 9 years ago
Thanks for spotting. At a first glance #975 seems to have broken it. Reverting ed7e233876239e5a6815150c33fb74215069f829 apparently solves the misbehavior. The second problem is that the unittests are somewhat poorly designed for this module.
Ciao Oleg,
I'm just started to play with RIOT and I think it rocks!
I'm working with msp430fram chip (http://www.ti.com/tool/msp-exp430fr5969) and if I get some interesting results I will share.
Greetings from Trento Attilio
On Wed, Nov 26, 2014 at 3:42 PM, Oleg Hahm notifications@github.com wrote:
Thanks for spotting. At a first glance #975 https://github.com/RIOT-OS/RIOT/pull/975 seems to have broken it. Reverting ed7e233 https://github.com/RIOT-OS/RIOT/commit/ed7e233876239e5a6815150c33fb74215069f829 apparently solves the misbehavior. The second problem is that the unittests are somewhat poorly designed for this module.
— Reply to this email directly or view it on GitHub https://github.com/RIOT-OS/RIOT/issues/2092#issuecomment-64654784.
Closed by #2094.
The current implementation of bitarithm_msb does not return the Most Significant Byte:
A right implementation could be:
according to http://graphics.stanford.edu/~seander/bithacks.html#IntegerLogObvious