diff options
author | Janne Grunau <janne-libav@jannau.net> | 2015-12-29 12:08:38 +0100 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2015-12-30 13:37:57 +0100 |
commit | 8563f9887194b07c972c3475d6b51592d77f73f7 (patch) | |
tree | 97e0ebde5ed5c87ae7f5679137c5719e71eaed64 /libavcodec/h264_slice.c | |
parent | f0f54117c8f206e8045d301c2eb975b26e9f263d (diff) | |
download | ffmpeg-8563f9887194b07c972c3475d6b51592d77f73f7.tar.gz |
x86: use emms after ff_int32_to_float_fmul_scalar_sse
Intel's Instruction Set Reference (as of September 2015) clearly states
that cvtpi2ps switches to MMX state. Actual CPUs do not switch if the
source is a memory location. The Instruction Set Reference from 1999
(Order Number 243191) describes this behaviour but all later versions
I've seen have make no distinction whether MMX registers or memory is
used as source.
The documentation for the matching SSE2 instruction to convert to double
(cvtpi2pd) was fixed (see the valgrind bug
https://bugs.kde.org/show_bug.cgi?id=210264).
It will take time to get a clarification and fixes in place. In the
meantime it makes sense to change ff_int32_to_float_fmul_scalar_sse to
be correct according to the documentation. The vast majority of users
will have SSE2 so a change to the SSE version has little effect.
Fixes fate-checkasm on x86 valgrind targets.
Valgrind 'bug' reported as https://bugs.kde.org/show_bug.cgi?id=357059
Diffstat (limited to 'libavcodec/h264_slice.c')
0 files changed, 0 insertions, 0 deletions