Skip to content

refactor: optimize bitset #437

@pscott

Description

@pscott

We compute mask by using the pow method but we could use some bitwise operators there (need to check if index > 128 and do the bitshifting accordingly!)

let mask = pow(u256 { low: 2_u128, high: 0_u128 }, index);

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