diff options
author | Alessandro Gatti <a.gatti@frob.it> | 2025-03-04 00:55:25 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-05-29 12:12:39 +1000 |
commit | f5d10c322ecacc6be208388fa93adba5bee6eb0c (patch) | |
tree | ca4e15f5f93600e72a97dfa13e9031e5bf53f778 /lib/mbedtls_errors/error.fmt | |
parent | 1006ed69f0ee8ea326a02ff05f45234c62d32d4e (diff) | |
download | micropython-master.tar.gz micropython-master.zip |
This commit simplifies native functions' prologue code by not emitting a
jump opcode that goes over the function's constants pool if the pool is
empty.
The original code assumed the constants pool is never empty as large
32-bits constants are commonly used, but for inline assembler functions
that may not be the case. This meant that inline assembler functions
may start with an unneeded jump (along with its alignment byte), using
four bytes more than necessary.
This commit is limited to the "xtensa" target, as "xtensawin" doesn't
support inline assembler functions yet, so native functions' constant
pools are almost always guaranteed to hold one or more values.
Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'lib/mbedtls_errors/error.fmt')
0 files changed, 0 insertions, 0 deletions