[riot-notifications] [RIOT] reverted 18e97f6dd5457538c7bf39c6abcf346f5a080ca5 (#310)

René Kijewski notifications at github.com
Thu Nov 7 23:35:06 CET 2013

>I haven't tested on the MSP430, but on ARM7 your code is - as mentioned - slower (with -Os and -O0).

Darn. Now I see why I had to abort my test. If you supply number_of_lowest_bit with a zero it gets stuck …
With an `if (!v) return 0;` it is about twice as fast as my implementation.

>I didn't quite get how you would make it smaller with __ffshi2.

You only need ffs or clz, not both, b/c clz can emulate ffs.

Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20131107/e0584f6c/attachment.html>

More information about the notifications mailing list