Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jun 2024 22:18:43 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: c70c791f0660 - main - drm2: Remove one more implementation of ilog2()
Message-ID:  <202406052218.455MIhld032456@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=c70c791f06601309201f6ca99d39fee83f5dd368

commit c70c791f06601309201f6ca99d39fee83f5dd368
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-06-05 22:18:19 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-06-05 22:18:19 +0000

    drm2: Remove one more implementation of ilog2()
    
    Reviewed by:    dougm
    Fixes:          b0056b31e900 ("libkern: add ilog2 macro")
    Differential Revision:  https://reviews.freebsd.org/D45504
---
 sys/dev/drm2/drm_os_freebsd.h | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/sys/dev/drm2/drm_os_freebsd.h b/sys/dev/drm2/drm_os_freebsd.h
index 0ce0dede6d73..58523a33da2a 100644
--- a/sys/dev/drm2/drm_os_freebsd.h
+++ b/sys/dev/drm2/drm_os_freebsd.h
@@ -297,13 +297,6 @@ get_unaligned_le32(const void *p)
 }
 #endif
 
-static inline unsigned long
-ilog2(unsigned long x)
-{
-
-	return (flsl(x) - 1);
-}
-
 int64_t		timeval_to_ns(const struct timeval *tv);
 struct timeval	ns_to_timeval(const int64_t nsec);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406052218.455MIhld032456>