← index #11667PR #14119
Related · high · value 0.366
QUERY · ISSUE

ViperTypeError: div/mod not implemented for uint

openby massimosalaopened 2023-05-30updated 2024-09-04
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

mergedby dpgeorgeopened 2024-03-18updated 2024-03-19
py-core

This adds support for +, - and ~ to @micropython.viper code.

See discussion #14110.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied