Skip to content

Could we have a find_prev() as well? #102

@rhalbersma

Description

@rhalbersma

Hi! Could we have a find_prev() to go along the find_next()? That would allow efficient reverse iteration over all 1-bits. The code should be pretty much the reverse of find_next(), and using countl_zero instead of countr_zero as the bit intrinsic function.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions