Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions