Skip to content

modulo VS BIT-AND operation #1934

@bigbro-pg

Description

@bigbro-pg

Hi,
I found the function of index in file _concurrent_queue_base.h using modulo to caculate the index.
Why not use the more efficient opeartion of BIT opeartor like k * phi & (n_queue - 1);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions