dfinity / motoko

Simple high-level language for writing Internet Computer canisters
Apache License 2.0
511 stars 97 forks source link

Codegen: Compact BigNum: missing shift and other operations #3060

Open crusso opened 2 years ago

crusso commented 2 years ago

The compact bignum implementation is missing shift operations that would be useful to implement some of the code for the cycles primitives (and exposing shift operators in Motoko).

We currently workaround this using slower division.

nomeata commented 2 years ago

The libtommath library we use provides these, so it shouldn’t be too hard, and indeed would make a good starter project.

ggreif commented 2 years ago

3112 is a start