diff options
| author | Philippe Mathieu-Daudé | 2022-08-19 17:39:22 +0200 |
|---|---|---|
| committer | Peter Maydell | 2022-09-22 17:38:28 +0200 |
| commit | 1e3acd33576c695262a09262c9319d44a01b11e7 (patch) | |
| tree | 8ad2378f4bf21fa0ec499af055112e1eeb7e91b0 /python/PACKAGE.rst | |
| parent | chardev/baum: Replace magic values by X_MAX / Y_MAX definitions (diff) | |
| download | qemu-1e3acd33576c695262a09262c9319d44a01b11e7.tar.gz qemu-1e3acd33576c695262a09262c9319d44a01b11e7.tar.xz qemu-1e3acd33576c695262a09262c9319d44a01b11e7.zip | |
chardev/baum: Use definitions to avoid dynamic stack allocation
We know 'x * y' will be at most 'X_MAX * Y_MAX' (which is not
a big value, it is actually 84). Instead of having the compiler
use variable-length array, declare an array able to hold the
maximum 'x * y'.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20220819153931.3147384-3-peter.maydell@linaro.org
Diffstat (limited to 'python/PACKAGE.rst')
0 files changed, 0 insertions, 0 deletions
