<?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 bitrev.h</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>e8620bd7e5e07c025a5e317ebc8c7df95dc63712 - arch/riscv: Add bitrev.h file to support rev8 and brev8</title>
        <link>http://kernelsources.org:8080/source/history/linux/arch/riscv/include/asm/bitrev.h#e8620bd7e5e07c025a5e317ebc8c7df95dc63712</link>
        <description>arch/riscv: Add bitrev.h file to support rev8 and brev8The RISC-V Bit-manipulation Extension for Cryptography (Zbkb) providesthe &apos;brev8&apos; instruction, which reverses the bits within each byte.Combined with the &apos;rev8&apos; instruction (from Zbb or Zbkb), which reversesthe byte order of a register, we can efficiently implement 16-bit,32-bit, and (on RV64) 64-bit bit reversal.This is significantly faster than the default software table-lookupimplementation in lib/bitrev.c, as it replaces memory accesses andmultiple arithmetic operations with just two or three hardwareinstructions.Select HAVE_ARCH_BITREVERSE as well as GENERIC_BITREVERSE,and provide &lt;asm/bitrev.h&gt; to utilize these instructions whenthe Zbkb extension is available at runtime via the alternativesmechanism.[Yury: select the options conditionally on BITREVERSE]Link: https://docs.riscv.org/reference/isa/unpriv/b-st-ext.htmlSuggested-by: David Laight &lt;david.laight.linux@gmail.com&gt;Signed-off-by: Jinjie Ruan &lt;ruanjinjie@huawei.com&gt;Signed-off-by: Yury Norov &lt;ynorov@nvidia.com&gt;

            List of files:
            /linux/arch/riscv/include/asm/bitrev.h</description>
        <pubDate>Wed, 06 May 2026 19:52:05 +0200</pubDate>
        <dc:creator>Jinjie Ruan &lt;ruanjinjie@huawei.com&gt;</dc:creator>
    </item>
</channel>
</rss>
