Open
Description
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.