forked from len0rd/rockbox
correct clz in pictureflow.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19887 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
78409ff50c
commit
b081a38131
1 changed files with 1 additions and 1 deletions
|
|
@ -355,7 +355,7 @@ static inline int clz(uint32_t v)
|
|||
static inline int clz(uint32_t v)
|
||||
{
|
||||
uint32_t r = 31;
|
||||
if (v > 0x8000)
|
||||
if (v >= 0x10000)
|
||||
{
|
||||
v >>= 16;
|
||||
r -= 16;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue