Skip to content

LinearPOT? #35

@tower120

Description

@tower120

Having Linear power-of-two mem_config would allow to use cheap bit shifts instead of divisions and modulos.
Thou I tested code from Linear as-is with POT capacity, and it seems that compiler are able to optimize it into bit operations in optimized build...

P.S. Maybe other mem_config modes could benefit from using POT size as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions