aboutsummaryrefslogtreecommitdiff
path: root/hw/avr/arduino.c
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2025-06-10 13:36:46 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2025-06-12 13:39:08 -0400
commitca2cc0385d97cea66cd54ee42553f385c403d4a6 (patch)
tree83d86ef0000d998fd807969a6abae455cc2baf62 /hw/avr/arduino.c
parent2553d2d26a9d0f46386bf8c37d184567e5cede6c (diff)
downloadqemu-ca2cc0385d97cea66cd54ee42553f385c403d4a6.zip
qemu-ca2cc0385d97cea66cd54ee42553f385c403d4a6.tar.gz
qemu-ca2cc0385d97cea66cd54ee42553f385c403d4a6.tar.bz2
hw/audio/cs4231a: skip automatic zero-init of large arrays
The 'cs_write_audio' method has a pair of byte arrays, one 4k in size and one 8k, which are used in converting audio samples. Skip the automatic zero-init of these arrays to eliminate the performance overhead in the I/O hot path. The 'tmpbuf' array will be fully initialized when reading a block of data from the guest. The 'linbuf' array will be fully initialized when converting the audio samples. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20250610123709.835102-9-berrange@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/avr/arduino.c')
0 files changed, 0 insertions, 0 deletions