diff options
Diffstat (limited to 'postproc')
-rw-r--r-- | postproc/swscale.c | 7 | ||||
-rw-r--r-- | postproc/swscale_template.c | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/postproc/swscale.c b/postproc/swscale.c index c37d7b655c..c5170490a0 100644 --- a/postproc/swscale.c +++ b/postproc/swscale.c @@ -644,6 +644,13 @@ YSCALEYUV2RGB g16Dither2= g16Dither; } +#ifdef HAVE_3DNOW + asm volatile("femms"); +#elif defined (HAVE_MMX) + asm volatile("emms"); +#endif + + } diff --git a/postproc/swscale_template.c b/postproc/swscale_template.c index c37d7b655c..c5170490a0 100644 --- a/postproc/swscale_template.c +++ b/postproc/swscale_template.c @@ -644,6 +644,13 @@ YSCALEYUV2RGB g16Dither2= g16Dither; } +#ifdef HAVE_3DNOW + asm volatile("femms"); +#elif defined (HAVE_MMX) + asm volatile("emms"); +#endif + + } |