[PATCH 1/5] string: Add fallback implementation for ctz/clz
Cristian Rodríguez
cristian@rodriguez.im
Mon Sep 1 21:17:47 GMT 2025
On Mon, Sep 1, 2025 at 4:58 PM Wilco Dijkstra <Wilco.Dijkstra@arm.com> wrote:
> So presumably this affects all targets that do not have a CLZ/CTZ instruction
> in some configurations? We may need a configure check for this.
The compiler claims this builtins are __attribute__(const)
functions..if the libgcc version depends on some kind of state table
then it is not a const function,
still a bug isn't it ? This does not happen elsewhere because it has a
clz pattern..does s390x really not have one?
More information about the Libc-alpha
mailing list