Ticket #4066: h264dsp_mmx_order_of_operations_fix.diff

File h264dsp_mmx_order_of_operations_fix.diff, 2.0 KB (added by Shane Shrybman <gnome42@…>, 17 years ago)
  • libs/libavcodec/i386/h264dsp_mmx.c

     
    13111311    uint64_t temp[SIZE*(SIZE<8?12:24)/4 + SIZE*SIZE/8];\
    13121312    uint8_t * const halfHV= (uint8_t*)temp;\
    13131313    int16_t * const tmp= ((int16_t*)temp) + SIZE*SIZE/2;\
    1314     assert((int)temp & 7 == 0);\
     1314    assert(((int)temp & 7) == 0);\
    13151315    put_h264_qpel ## SIZE ## _hv_lowpass_ ## MMX(halfHV, tmp, src, SIZE, SIZE, stride);\
    13161316    OPNAME ## h264_qpel ## SIZE ## _h_lowpass_l2_ ## MMX(dst, src, halfHV, stride, SIZE);\
    13171317}\
     
    13201320    uint64_t temp[SIZE*(SIZE<8?12:24)/4 + SIZE*SIZE/8];\
    13211321    uint8_t * const halfHV= (uint8_t*)temp;\
    13221322    int16_t * const tmp= ((int16_t*)temp) + SIZE*SIZE/2;\
    1323     assert((int)temp & 7 == 0);\
     1323    assert(((int)temp & 7) == 0);\
    13241324    put_h264_qpel ## SIZE ## _hv_lowpass_ ## MMX(halfHV, tmp, src, SIZE, SIZE, stride);\
    13251325    OPNAME ## h264_qpel ## SIZE ## _h_lowpass_l2_ ## MMX(dst, src+stride, halfHV, stride, SIZE);\
    13261326}\
     
    13291329    uint64_t temp[SIZE*(SIZE<8?12:24)/4 + SIZE*SIZE/8];\
    13301330    int16_t * const halfV= ((int16_t*)temp) + SIZE*SIZE/2;\
    13311331    uint8_t * const halfHV= ((uint8_t*)temp);\
    1332     assert((int)temp & 7 == 0);\
     1332    assert(((int)temp & 7) == 0);\
    13331333    put_h264_qpel ## SIZE ## _hv_lowpass_ ## MMX(halfHV, halfV, src, SIZE, SIZE, stride);\
    13341334    OPNAME ## pixels ## SIZE ## _l2_shift5_ ## MMX(dst, halfV+2, halfHV, stride, SIZE, SIZE);\
    13351335}\
     
    13381338    uint64_t temp[SIZE*(SIZE<8?12:24)/4 + SIZE*SIZE/8];\
    13391339    int16_t * const halfV= ((int16_t*)temp) + SIZE*SIZE/2;\
    13401340    uint8_t * const halfHV= ((uint8_t*)temp);\
    1341     assert((int)temp & 7 == 0);\
     1341    assert(((int)temp & 7) == 0);\
    13421342    put_h264_qpel ## SIZE ## _hv_lowpass_ ## MMX(halfHV, halfV, src, SIZE, SIZE, stride);\
    13431343    OPNAME ## pixels ## SIZE ## _l2_shift5_ ## MMX(dst, halfV+3, halfHV, stride, SIZE, SIZE);\
    13441344}\