mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-25 00:10:11 +01:00
FreeBSD: use flsl() instead of ffsl().
I noticed that we were computing drm_order differently than linux.
This commit is contained in:
parent
2ce00c6b67
commit
06e182d025
1 changed files with 1 additions and 1 deletions
|
|
@ -1102,7 +1102,7 @@ int drm_order(unsigned long size)
|
|||
if (size == 0)
|
||||
return 0;
|
||||
|
||||
order = ffsl(size) - 1;
|
||||
order = flsl(size) - 1;
|
||||
if (size & ~(1ul << order))
|
||||
++order;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue