1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-19 05:49:09 +02:00
FFmpeg/libavutil
Martin Storsjö 7ec2354c38 x86: Remove inline MMX assembly that clobbers the FPU state
These inline implementations of AV_COPY64, AV_SWAP64 and AV_ZERO64
are known to clobber the FPU state - which has to be restored
with the 'emms' instruction afterwards.

This was known and signaled with the FF_COPY_SWAP_ZERO_USES_MMX
define, which calling code seems to have been supposed to check,
in order to call emms_c() after using them. See
0b1972d4096df5879038f0af776f87f41e90ebd4,
29c4c0886d143790fcbeddbe40a23dfc6f56345c and
df215e575850e41b19aeb1fd99e53372a6b3d537 for history on earlier
fixes in the same area.

However, new code can use these AV_*64() macros without knowing
about the need to call emms_c().

Just get rid of these dangerous inline assembly snippets; this
doesn't make any difference for 64 bit architectures anyway.

Signed-off-by: Martin Storsjö <martin@martin.st>
2024-02-09 23:55:52 +02:00
..
2023-09-07 00:42:10 +02:00
2023-11-18 19:55:42 +01:00
2023-09-02 02:49:06 +02:00
2023-09-02 02:49:06 +02:00
2023-08-08 09:46:11 +02:00
2023-09-07 00:42:10 +02:00
2023-09-07 00:42:10 +02:00
2023-09-07 00:42:10 +02:00
2023-09-07 00:42:10 +02:00
2023-09-07 00:42:10 +02:00
2024-01-16 01:34:57 +01:00
2023-07-22 21:35:15 +03:00
2023-09-07 00:42:10 +02:00
2023-09-07 00:42:10 +02:00
2023-09-01 23:59:10 +02:00
2023-08-08 09:46:11 +02:00
2023-08-08 09:46:11 +02:00