Skip to content

expose GMP bit-flipping operations (tstbit, combit, etcetera) #53793

Open
@stevengj

Description

@stevengj

GMP provides some bit-fiddling operations that we don't currently export, e.g. to directly test or set the n-th bit.

You can simulate these operations by doing bit operations with BigInt(1) << n, but that requires constructing an intermediate BigInt.

Apparently these operations show up in some crypto algorithms, so it might be nice to expose a high-level interface.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bignumsBigInt and BigFloat

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions