On Mon, Oct 24, 2016 at 9:34 PM, wm4 <nfx...@googlemail.com> wrote: > a ASM function must, according to the calling convention, reset the > MMX state when returning. > > What FFmpeg does here was misdesigned from the very start.
The decision to issue emms manually instead of after every MMX function was a deliberate decision. I'd hardly call it "misdesigned" to make SIMD code twice as fast at the cost of technically abusing the ABI, which has worked flawlessly for years until very recently. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel