Revision 40d0e665 libavcodec/i386/flacdsp_mmx.c

View differences:

libavcodec/i386/flacdsp_mmx.c
20 20
 */
21 21

  
22 22
#include "dsputil_mmx.h"
23
#include "x86_cpu.h"
23 24

  
24 25
static void apply_welch_window_sse2(const int32_t *data, int len, double *w_data)
25 26
{
26 27
    double c = 2.0 / (len-1.0);
27 28
    int n2 = len>>1;
28
    long i = -n2*sizeof(int32_t);
29
    long j =  n2*sizeof(int32_t);
29
    x86_reg i = -n2*sizeof(int32_t);
30
    x86_reg j =  n2*sizeof(int32_t);
30 31
    asm volatile(
31 32
        "movsd   %0,     %%xmm7 \n\t"
32 33
        "movapd  %1,     %%xmm6 \n\t"
......
71 72
    double *data1 = tmp + lag;
72 73
    int j;
73 74

  
74
    if((long)data1 & 15)
75
    if((x86_reg)data1 & 15)
75 76
        data1++;
76 77

  
77 78
    apply_welch_window_sse2(data, len, data1);
......
81 82
    data1[len] = 0.0;
82 83

  
83 84
    for(j=0; j<lag; j+=2){
84
        long i = -len*sizeof(double);
85
        x86_reg i = -len*sizeof(double);
85 86
        if(j == lag-2) {
86 87
            asm volatile(
87 88
                "movsd     %6,     %%xmm0 \n\t"

Also available in: Unified diff