per Jens Arnold's suggestion:
commit77936fe3af9d6788c7cae73e72d34aade2744f1a
authorunhelpful <unhelpful@a1c6a512-1295-4272-9138-f99709370657>
Fri, 30 Jan 2009 10:52:30 +0000 (30 10:52 +0000)
committerunhelpful <unhelpful@a1c6a512-1295-4272-9138-f99709370657>
Fri, 30 Jan 2009 10:52:30 +0000 (30 10:52 +0000)
tree11e1cafefa29f74c763b3a54e9823814886feb59
parent526ffd2cb5e50e6ea6613e0aac4c1dc9d1075f84
per Jens Arnold's suggestion:
use platform clz instruction only on ARMv5+, where we know it returns 32 for a 0 input, and remove the special case for 0

use binary search only to find most significant four bits, then use lookup table to add number of leading zeroes within those bits

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19888 a1c6a512-1295-4272-9138-f99709370657
apps/plugins/pictureflow.c