]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
LoongArch: Simplify __arch_bitrev32() implementation
authorXi Ruoyao <xry111@xry111.site>
Sat, 6 Dec 2025 02:39:39 +0000 (10:39 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Sat, 6 Dec 2025 02:39:39 +0000 (10:39 +0800)
commit17fcc4bd7edcd74bae286754ac3a377c9886b3fd
tree517ff5a88369ae15b892dac264e710ea789f47af
parent10eda1c51cbbd7f3f9f1f481b6725105aca4982a
LoongArch: Simplify __arch_bitrev32() implementation

LoongArch has the bitrev.w instruction to reverse bits in a 32-bit
integer, thus there's no need to reverse the bytes and use bitrev.4b.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/bitrev.h