diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-04-17 23:24:13 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-04-17 23:24:13 +0100 |
| commit | 5b65f0c7d386646229b6647332e7a09277872e4c (patch) | |
| tree | 06e46eaf0b82fe600109ccaeefa76f3512175922 /py/mpconfig.h | |
| parent | 559d8239cac950cc011edd9605010a311b2b9be6 (diff) | |
py: Rename USE_COMPUTED_GOTOS to USE_COMPUTED_GOTO and enable on stmhal.
On stmhal, computed gotos make the binary about 1k bigger, but makes it
run faster, and we have the room, so why not. All tests pass on
pyboard using computed gotos.
Diffstat (limited to 'py/mpconfig.h')
| -rw-r--r-- | py/mpconfig.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 43c931cd6..4c3e0706a 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -166,8 +166,8 @@ typedef double mp_float_t; // Whether to use computed gotos in the VM, or a switch // Computed gotos are roughly 10% faster, and increase VM code size by a little -#ifndef MICROPY_USE_COMPUTED_GOTOS -#define MICROPY_USE_COMPUTED_GOTOS (0) +#ifndef MICROPY_USE_COMPUTED_GOTO +#define MICROPY_USE_COMPUTED_GOTO (0) #endif // Additional builtin function definitions - see builtintables.c:builtin_object_table for format. |
