Files
ffmpeg/libavcodec
James Almer 518cbf9b4a x86/dsputil: fix VECTOR_CLIP_INT32 macro
The inline loop was incrementing and using the value of %%i
the wrong way.

Disassembly of ff_vector_clip_int32_sse2 before and after
this patch:

    movdqa (%rdx),%xmm0      |  movdqa (%rdx),%xmm0
    movdqa 0x10(%rdx),%xmm1  |  movdqa 0x10(%rdx),%xmm1
    movdqa 0x20(%rdx),%xmm2  |  movdqa 0x20(%rdx),%xmm2
    movdqa 0x30(%rdx),%xmm3  |  movdqa 0x30(%rdx),%xmm3
[...]                        |
    movdqa %xmm0,(%rcx)      |  movdqa %xmm0,(%rcx)
    movdqa %xmm1,0x10(%rcx)  |  movdqa %xmm1,0x10(%rcx)
    movdqa %xmm2,0x20(%rcx)  |  movdqa %xmm2,0x20(%rcx)
    movdqa %xmm3,0x30(%rcx)  |  movdqa %xmm3,0x30(%rcx)
    movdqa (%rdx),%xmm0      |  movdqa 0x40(%rdx),%xmm0
    movdqa 0x20(%rdx),%xmm1  |  movdqa 0x50(%rdx),%xmm1
    movdqa 0x40(%rdx),%xmm2  |  movdqa 0x60(%rdx),%xmm2
    movdqa 0x60(%rdx),%xmm3  |  movdqa 0x70(%rdx),%xmm3
[...]                        |
    movdqa %xmm0,(%rcx)      |  movdqa %xmm0,0x40(%rcx)
    movdqa %xmm1,0x20(%rcx)  |  movdqa %xmm1,0x50(%rcx)
    movdqa %xmm2,0x40(%rcx)  |  movdqa %xmm2,0x60(%rcx)
    movdqa %xmm3,0x60(%rcx)  |  movdqa %xmm3,0x70(%rcx)
    add    $0x80,%rdx        |  add    $0x80,%rdx
    add    $0x80,%rcx        |  add    $0x80,%rcx

Other versions were unaffected.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-05-23 22:59:55 +02:00
..
2014-04-22 20:44:31 +02:00
2014-05-16 03:13:27 +02:00
2014-04-22 02:38:03 +02:00
2014-04-22 20:08:30 +02:00
2014-05-17 15:51:49 +02:00
2014-05-11 20:06:45 +02:00
2014-04-22 20:44:31 +02:00
2014-04-22 20:44:31 +02:00
2014-04-22 20:08:30 +02:00
2014-04-01 00:10:15 +02:00
2014-04-01 00:10:15 +02:00
2014-04-12 05:40:37 +02:00
2014-04-20 17:02:16 +02:00
2014-04-05 03:32:11 +02:00
2014-04-22 20:44:31 +02:00
2014-05-17 15:51:49 +02:00
2014-04-12 15:41:00 +02:00
2014-04-27 14:50:14 +02:00
2014-04-28 00:22:38 +02:00
2014-04-04 04:00:11 +02:00
2014-05-17 01:14:51 +02:00
2014-05-19 07:10:03 +02:00
2014-05-06 18:23:36 +02:00
2014-05-06 18:23:36 +02:00
2014-04-01 13:43:44 +02:00
2014-05-17 15:51:49 +02:00
2014-05-09 16:07:15 +02:00
2014-04-22 20:44:31 +02:00
2014-04-27 13:03:28 +02:00
2014-04-30 17:41:31 +02:00
2014-04-18 15:19:09 +02:00
2014-04-25 15:04:42 +02:00
2014-04-16 19:45:43 +02:00
2014-05-12 03:27:04 +02:00
2014-05-03 18:25:17 +02:00
2014-03-29 18:13:15 +01:00
2014-04-20 17:35:19 +02:00
2014-04-22 02:41:05 +02:00
2014-03-27 23:57:51 +01:00