[FFmpeg-devel] [PATCH] riscv: detect fast CLZ from Zbb extension

2022-09-03 Thread remi
From: Rémi Denis-Courmont RISC-V defines the CLZ instruction as part of the Zbb subset of the bit mapulation extension (B). We can detect it from the __riscv_zbb predefined constant. It will be non-zero if supported, zero if enabled in the compiler flags but not supported by the compiler, and und

[FFmpeg-devel] [PATCH] riscv: detect fast CLZ from Zbb extension

2022-09-03 Thread remi
From: Rémi Denis-Courmont RISC-V defines the CLZ instruction as part of the Zbb subset of the bit mapulation extension (B). We can detect it from the __riscv_zbb predefined constant. It will be non-zero if supported, zero if enabled in the compiler flags but not supported by the compiler, and und