mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
Updated Improving performance with Viper code (markdown)
@@ -136,7 +136,7 @@ As it is usual in Python, a Viper variable is of type Viper `int when you assig
|
|||||||
```
|
```
|
||||||
If the variable is created by assigning an expression, the Viper code emitter will evaluate the expression at compile time.
|
If the variable is created by assigning an expression, the Viper code emitter will evaluate the expression at compile time.
|
||||||
|
|
||||||
Be aware: Integer expressions outside of what is called the "small integer" range of MicroPython are not Viper `int` but `builtins.int`. On most architectures a MicroPython small integer falls is -2\*\*29 and 2\*\*29-1.
|
Be aware: Integer constant expressions outside of what is called the "small integer" range of MicroPython are not Viper `int` but `builtins.int`. On most architectures a MicroPython small integer falls is -2\*\*29 and 2\*\*29-1.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
```py
|
```py
|
||||||
|
|||||||
Reference in New Issue
Block a user