diff options
author | RĂ©mi Denis-Courmont <remi@remlab.net> | 2022-10-06 21:46:12 +0300 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2022-10-10 02:23:18 +0200 |
commit | 105921251ab35b870887e0c7348016f4dff3ec5b (patch) | |
tree | 08d2d68c6304aca51aa3b931b5ea0282334de2d5 /libavdevice/alsa.h | |
parent | bfc69297c5d8d130b9cf1082dd1728b39a0e75f6 (diff) | |
download | ffmpeg-105921251ab35b870887e0c7348016f4dff3ec5b.tar.gz |
lavc/aacpsdsp: fix clobber on RISC-V LP64D/ILP32D
Although the DSP function only uses single precision from RISC-V F, the
caller may leave double precision values in the spilled registers if the
calling convention supports double precision hardware floats. Then, we
need to save and restore FS registers as double precision.
Conversely, we do not need to save anything at all if an integer calling
convention is in use. However we can assume that single precision floats
are supported, since the Zve32f extension implies the F extension.
So for the sake of simplicity, we always save at least single precision
values.
In theory, we should even save quadruple precision values if the LP64Q
ABI is in use. I have yet to see a compiler that supports it though.
Diffstat (limited to 'libavdevice/alsa.h')
0 files changed, 0 insertions, 0 deletions