[PATCH] RISC-V: Use __builtin_ffs when zbb is enabled

Anton Blanchard antonb@tenstorrent.com
Mon Jan 27 02:01:08 GMT 2025


Hi Xi,

On Mon, Jan 27, 2025 at 9:42 AM Xi Ruoyao <xry111@xry111.site> wrote:
>
> On Mon, 2025-01-27 at 01:23 +0000, Anton Blanchard wrote:
> > Using __builtin_ffs when zbb is enabled takes __ffs from 26
> > instructions to 5.
>
> The change will generate a infinite recursion with GCC 11:
> https://godbolt.org/z/cKzG5Tb35
>
> Please check the GCC version with __GNUC_PREREQ.

Thanks, will do.

Anton


More information about the Libc-alpha mailing list