Mercurial > libavcodec.hg
comparison i386/dsputil_mmx.c @ 3541:3fbddeb13686 libavcodec
10l, vorbis_inverse_coupling_sse() was really 3dnow
author | lorenm |
---|---|
date | Thu, 03 Aug 2006 07:09:29 +0000 |
parents | 545a15c19c91 |
children | 8e13ec0f8aa3 |
comparison
equal
deleted
inserted
replaced
3540:f31fda209742 | 3541:3fbddeb13686 |
---|---|
2709 ff_idct_xvid_mmx2 (block); | 2709 ff_idct_xvid_mmx2 (block); |
2710 add_pixels_clamped_mmx(block, dest, line_size); | 2710 add_pixels_clamped_mmx(block, dest, line_size); |
2711 } | 2711 } |
2712 #endif | 2712 #endif |
2713 | 2713 |
2714 static void vorbis_inverse_coupling_sse(float *mag, float *ang, int blocksize) | 2714 static void vorbis_inverse_coupling_3dnow(float *mag, float *ang, int blocksize) |
2715 { | 2715 { |
2716 int i; | 2716 int i; |
2717 asm volatile("pxor %%mm7, %%mm7":); | 2717 asm volatile("pxor %%mm7, %%mm7":); |
2718 for(i=0; i<blocksize; i+=2) { | 2718 for(i=0; i<blocksize; i+=2) { |
2719 asm volatile( | 2719 asm volatile( |
3191 } | 3191 } |
3192 #endif | 3192 #endif |
3193 | 3193 |
3194 if(mm_flags & MM_SSE2) | 3194 if(mm_flags & MM_SSE2) |
3195 c->vorbis_inverse_coupling = vorbis_inverse_coupling_sse2; | 3195 c->vorbis_inverse_coupling = vorbis_inverse_coupling_sse2; |
3196 else if(mm_flags & MM_SSE) | 3196 else if(mm_flags & MM_3DNOW) |
3197 c->vorbis_inverse_coupling = vorbis_inverse_coupling_sse; | 3197 c->vorbis_inverse_coupling = vorbis_inverse_coupling_3dnow; |
3198 } | 3198 } |
3199 | 3199 |
3200 #ifdef CONFIG_ENCODERS | 3200 #ifdef CONFIG_ENCODERS |
3201 dsputil_init_pix_mmx(c, avctx); | 3201 dsputil_init_pix_mmx(c, avctx); |
3202 #endif //CONFIG_ENCODERS | 3202 #endif //CONFIG_ENCODERS |