From 06e182d0259d1d2e775814fa070c6cce0ee233a8 Mon Sep 17 00:00:00 2001 From: Robert Noland Date: Mon, 16 Mar 2009 00:08:06 -0500 Subject: FreeBSD: use flsl() instead of ffsl(). I noticed that we were computing drm_order differently than linux. --- bsd-core/drm_bufs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bsd-core') 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; -- cgit v1.2.3