QUERY · ISSUE
ViperTypeError: div/mod not implemented for uint
enhancement
General topic, not related to a specific micro.
Viper is great for optimizing functions, like custom hashes, that only do calculations on integers... but
ViperTypeError: div/mod not implemented for uint
Is it possible to implement this?
CANDIDATE · PULL REQUEST
py/emitnative: implement unary ops for viper code
py-core
This adds support for +, - and ~ to @micropython.viper code.
See discussion #14110.