mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-28 09:40:21 +01:00
Fix compat implementation of ffs() to return 1-based bit numbers.
This commit is contained in:
parent
f2b914298f
commit
e9809a36aa
1 changed files with 1 additions and 0 deletions
|
|
@ -560,6 +560,7 @@ _mesa_ffs(int i)
|
|||
bit++;
|
||||
i >>= 1;
|
||||
}
|
||||
bit++;
|
||||
}
|
||||
return bit;
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue