<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/source/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in bitops.h</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>7e4a2b381dcb5b2bcaf528e010096fd2d14868b1 - LinuxKPI: improve hweight&lt;n&gt; if complie time constant</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#7e4a2b381dcb5b2bcaf528e010096fd2d14868b1</link>
        <description>LinuxKPI: improve hweight&lt;n&gt; if complie time constantrtw89(4) uses a static_assert() with hweight&lt;n&gt; calls.  In order toavoid compile time errors, deal with the case when the arguments tohweight&lt;n&gt; are complie time constant.Sponsored by:	The FreeBSD FoundationMFC after:	3 daysReviewed by:	emasteDifferential Revision: https://reviews.freebsd.org/D54806

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Tue, 20 Jan 2026 23:41:12 +0100</pubDate>
        <dc:creator>Bjoern A. Zeeb &lt;bz@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>6c0bcd15e4782ff2e23119a37396d693d09c695d - linuxkpi: Add `rol32()`</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#6c0bcd15e4782ff2e23119a37396d693d09c695d</link>
        <description>linuxkpi: Add `rol32()``rol64()` and `rol32()` are used by &lt;linux/siphash.h&gt;. The former wasadded previously, before &lt;linux/siphash.h&gt; was added. However the latterwas not, and it broke the build on armv7.Reported by:	adrianReviewed by:	adrian, rpokalaSponsored by:	The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D54588

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Wed, 07 Jan 2026 22:18:38 +0100</pubDate>
        <dc:creator>Jean-S&#233;bastien P&#233;dron &lt;dumbbell@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>a9462e32fa75a9a1e3f49964bc42b5303e0dd092 - linuxkpi: Add `rol64()`</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#a9462e32fa75a9a1e3f49964bc42b5303e0dd092</link>
        <description>linuxkpi: Add `rol64()`This is used by &lt;linux/siphash.h&gt; added in a separate future commit.Reviewed by:	bzSponsored by:	The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D54499

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Mon, 08 Sep 2025 01:22:22 +0200</pubDate>
        <dc:creator>Jean-S&#233;bastien P&#233;dron &lt;dumbbell@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>34892a8e30055000352d9612ad985be550c82bea - LinuxKPI: bitcount fix builds with gcc and older llvm</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#34892a8e30055000352d9612ad985be550c82bea</link>
        <description>LinuxKPI: bitcount fix builds with gcc and older llvmLLVM before 19 and gcc before 14 do not support __builtin_popcountg().Use __const_bitcount&lt;n&gt; from sys/bitcount.h as a replacement in thesecases.  This should still allow drm-kmod to build where the size needsto be known at compile-time.Remove the conditional for gcc around the iwlwifi modules build,which was collateral damage in all this.Sponsored by:	The FreeBSD FoundationFixes:		7cbc4d875971, 5e0a4859f28aMFC after:	3 daysReviewed by:	brooks, emaste (without the sys/modules/Makefile change)Differential Revision: https://reviews.freebsd.org/D54297

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Tue, 16 Sep 2025 01:52:13 +0200</pubDate>
        <dc:creator>Bjoern A. Zeeb &lt;bz@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>3e9ad70a30d93fc8bc759af7ec57aaa7e0b2d4f6 - linuxkpi: Fix the definition of BITS_PER_LONG</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#3e9ad70a30d93fc8bc759af7ec57aaa7e0b2d4f6</link>
        <description>linuxkpi: Fix the definition of BITS_PER_LONGDon&apos;t use __LP64__ to decide the value, as it gives the wrong result onCHERI platforms.  Just define it in terms of __SIZEOF_LONG__.  Make asimilar adjustment for BITS_PER_LONG_LONG while here.Reviewed by:	bz, dumbbell, emasteMFC after:	1 weekSponsored by:	CHERI Research Centre (EPSRC grant UKRI3001)Differential Revision:	https://reviews.freebsd.org/D53135

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Wed, 22 Oct 2025 16:04:46 +0200</pubDate>
        <dc:creator>Mark Johnston &lt;markj@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>7cbc4d875971860d941cc15d7f42e6cfeffbfe66 - linuxkpi: Use `__builtin_popcountg()` instead of `bitcount*()`</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#7cbc4d875971860d941cc15d7f42e6cfeffbfe66</link>
        <description>linuxkpi: Use `__builtin_popcountg()` instead of `bitcount*()`The DRM drivers generic code started to use `HWEIGHT64()` in thedefinition of an array field in a structure. Therefore, the array sizeneeds to be known at compile time. This was not the case with the`HWEIGHT*()` macros based on `bitcount*()`. The use of`__builtin_popcountg()` solves that problem.Reviewed by:	bzSponsored by:	The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D50995

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Sun, 22 Jun 2025 11:59:01 +0200</pubDate>
        <dc:creator>Jean-S&#233;bastien P&#233;dron &lt;dumbbell@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>cdbff1b2999660b31b2de076d04670722a555ed2 - linuxkpi: Remove incorrect + 1 from HWEIGHT* macros</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#cdbff1b2999660b31b2de076d04670722a555ed2</link>
        <description>linuxkpi: Remove incorrect + 1 from HWEIGHT* macrosFixes: 4cc8a9da491d (&quot;LinuxKPI: add HWEIGHT32()&quot;)Reviewed by:	bzSponsored by:	The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D51010

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Tue, 24 Jun 2025 15:36:54 +0200</pubDate>
        <dc:creator>Ed Maste &lt;emaste@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>3fd7fd4974c8000148360af2f02002f1c083681a - linuxkpi: Add `__assign_bit()`</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#3fd7fd4974c8000148360af2f02002f1c083681a</link>
        <description>linuxkpi: Add `__assign_bit()`[Why]This function is used by the i915 DRM driver in Linux 6.7.Reviewed by:	manuSponsored by:	The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D48752

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Fri, 27 Dec 2024 01:33:08 +0100</pubDate>
        <dc:creator>Jean-S&#233;bastien P&#233;dron &lt;dumbbell@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>f674f016c03d49e14f1c651ed088a6f2d01a62ee - LinuxKPI: add BITS_TO_BYTES()</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#f674f016c03d49e14f1c651ed088a6f2d01a62ee</link>
        <description>LinuxKPI: add BITS_TO_BYTES()Just like BITS_TO_LONG() ... used in rtw89.Sponsored by:	The FreeBSD FoundationMFC after:	3 daysReviewed by:	emasteDifferential Revision: https://reviews.freebsd.org/D44603

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Wed, 03 Apr 2024 01:48:05 +0200</pubDate>
        <dc:creator>Bjoern A. Zeeb &lt;bz@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>95ee2897e98f5d444f26ed2334cc7c439f9c16c6 - sys: Remove $FreeBSD$: two-line .h pattern</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#95ee2897e98f5d444f26ed2334cc7c439f9c16c6</link>
        <description>sys: Remove $FreeBSD$: two-line .h patternRemove /^\s*\*\n \*\s+\$FreeBSD\$$\n/

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Wed, 16 Aug 2023 19:54:11 +0200</pubDate>
        <dc:creator>Warner Losh &lt;imp@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>d17b78aa142d7c63490c7a2c3f202ef99fffad70 - LinuxKPI: add __ffs64()</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#d17b78aa142d7c63490c7a2c3f202ef99fffad70</link>
        <description>LinuxKPI: add __ffs64()Add __ffs64() to linux/bitops.h needed by a driver.Reviewed by:	hselaskyMFC after:	3 daysDifferential Revision: https://reviews.freebsd.org/D34225

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Wed, 09 Feb 2022 12:43:33 +0100</pubDate>
        <dc:creator>Bjoern A. Zeeb &lt;bz@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>307f78f3ed90a4145eeb2c8cc79bc95b2666f57a - LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#307f78f3ed90a4145eeb2c8cc79bc95b2666f57a</link>
        <description>LinuxKPI: Constantly use _LINUXKPI_ prefix in include guardsMFC after:	1 weekReviewed by:	bz, emaste, hselasky, manuDifferential Revision:	https://reviews.freebsd.org/D33562

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Sun, 19 Dec 2021 11:42:42 +0100</pubDate>
        <dc:creator>Vladimir Kondratyev &lt;wulf@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>ea4dea83944ac6334d31e0364dd674eda250adde - LinuxKPI: add sign_extend32()</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#ea4dea83944ac6334d31e0364dd674eda250adde</link>
        <description>LinuxKPI: add sign_extend32()Add sign_extend32() replicating the 64 version.  This is needed bythe rtw88 driver.MFC after:	10 daysReviewed by:	imp, emaste, hselaskyDifferential Revision: https://reviews.freebsd.org/D30979

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Thu, 01 Jul 2021 15:14:19 +0200</pubDate>
        <dc:creator>Bjoern A. Zeeb &lt;bz@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>4cc8a9da491d10f1b4bad6a50730b67dd5e899c7 - LinuxKPI: add HWEIGHT32()</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#4cc8a9da491d10f1b4bad6a50730b67dd5e899c7</link>
        <description>LinuxKPI: add HWEIGHT32()Add HWEIGHT32() macro needed by iwlwifi and while here add the 8/16/64variants likewise.Sponsored by:	The FreeBSD FoundationMFC after:	12 daysReviewed by:	hselaskyDifferential Revision: https://reviews.freebsd.org/D30501

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Thu, 27 May 2021 15:09:40 +0200</pubDate>
        <dc:creator>Bjoern A. Zeeb &lt;bz@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>a399cf139b5aedc5c7ce8811ea2f34268da7e8bd - Prefer using the MIN() function macro over the min() inline function</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#a399cf139b5aedc5c7ce8811ea2f34268da7e8bd</link>
        <description>Prefer using the MIN() function macro over the min() inline functionin the LinuxKPI. Linux defines min() to be a macro, while in FreeBSDmin() is a static inline function clamping its arguments to&quot;unsigned int&quot;.MFC after:	1 weekSponsored by:	Mellanox Technologies // NVIDIA Networking

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Mon, 07 Dec 2020 10:48:06 +0100</pubDate>
        <dc:creator>Hans Petter Selasky &lt;hselasky@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>de6fc2e39bc1d88511b62ed3a6834a6f0cd6b3a4 - Merge ^/head r364082 through r364250.</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#de6fc2e39bc1d88511b62ed3a6834a6f0cd6b3a4</link>
        <description>Merge ^/head r364082 through r364250.

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Sat, 15 Aug 2020 13:49:31 +0200</pubDate>
        <dc:creator>Dimitry Andric &lt;dim@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>440cec3faf778469b36b998bb52aab7fbc43eae3 - MFH</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#440cec3faf778469b36b998bb52aab7fbc43eae3</link>
        <description>MFHSponsored by:	Rubicon Communications, LLC (netgate.com)

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Wed, 12 Aug 2020 19:16:26 +0200</pubDate>
        <dc:creator>Glen Barber &lt;gjb@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>74d3a63559e0ab55db91e8a67171917a4f0fb3ea - Use atomic_clear_rel_long() to implement clear_bit_unlock() in the LinuxKPI</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#74d3a63559e0ab55db91e8a67171917a4f0fb3ea</link>
        <description>Use atomic_clear_rel_long() to implement clear_bit_unlock() in the LinuxKPIafter r363842.Suggested by:	alc@MFC after:	1 weekSponsored by:	Mellanox Technologies

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Tue, 11 Aug 2020 14:41:40 +0200</pubDate>
        <dc:creator>Hans Petter Selasky &lt;hselasky@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>e383ec74e572975ccda09be4c6bb028b50f6d2c6 - Merge ^/head r363739 through r363986.</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#e383ec74e572975ccda09be4c6bb028b50f6d2c6</link>
        <description>Merge ^/head r363739 through r363986.

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Thu, 06 Aug 2020 21:34:55 +0200</pubDate>
        <dc:creator>Dimitry Andric &lt;dim@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>334680ab074cae5c7fa78ebcb04a9765bbf4fcea - linuxkpi: Add clear_bit_unlock</title>
        <link>http://kernelsources.org:8080/source/history/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h#334680ab074cae5c7fa78ebcb04a9765bbf4fcea</link>
        <description>linuxkpi: Add clear_bit_unlockThis calls clear_bit and adds a memory barrier.Sponsored by: The FreeBSD FoundationReviewed by:	hselaskyMFC after:	1 weekDifferential Revision:	https://reviews.freebsd.org/D25943

            List of files:
            /freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h</description>
        <pubDate>Tue, 04 Aug 2020 17:25:22 +0200</pubDate>
        <dc:creator>Emmanuel Vadot &lt;manu@FreeBSD.org&gt;</dc:creator>
    </item>
</channel>
</rss>
