diff options
author | Robert Noland <rnoland@2hip.net> | 2009-03-16 00:08:06 -0500 |
---|---|---|
committer | Robert Noland <rnoland@2hip.net> | 2009-03-16 00:08:06 -0500 |
commit | 06e182d0259d1d2e775814fa070c6cce0ee233a8 (patch) | |
tree | 58f325d96a75a1a5d99141a0c951626441e80efd | |
parent | 2ce00c6b674a51bdfaa3276b88d2015c59d4584e (diff) |
FreeBSD: use flsl() instead of ffsl().
I noticed that we were computing drm_order differently than linux.
-rw-r--r-- | bsd-core/drm_bufs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd-core/drm_bufs.c b/bsd-core/drm_bufs.c index 88445a4d..53cff648 100644 --- a/bsd-core/drm_bufs.c +++ b/bsd-core/drm_bufs.c @@ -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; |