reilabs / llvm-to-cairo

Efforts to compile LLVM bytecode to run on top of the CairoVM and hence execute provably on Starknet
http://starknet.io
Apache License 2.0
1 stars 0 forks source link

Implement 16b Arithmetic #33

Open ktemkin opened 5 days ago

ktemkin commented 5 days ago

Description

Implement signed and unsigned 16-bit arithmetic on top of the primitives provided by the CairoVM. It needs to provide the following operations, and must behave as expected for performing the same operations in a standard hardware CPU model:

This can likely draw heavily on the experience implementing 8-bit arithmetic (#32).