Revision 7160bb71 libavcodec/arm/dsputil_iwmmxt.c

View differences:

libavcodec/arm/dsputil_iwmmxt.c
19 19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
 */
21 21

  
22
#include "libavutil/cpu.h"
22 23
#include "libavcodec/dsputil.h"
23 24

  
24 25
#define DEF(x, y) x ## _no_rnd_ ## y ##_iwmmxt
......
153 154

  
154 155
void ff_dsputil_init_iwmmxt(DSPContext* c, AVCodecContext *avctx)
155 156
{
156
    int mm_flags = FF_MM_IWMMXT; /* multimedia extension flags */
157
    int mm_flags = AV_CPU_FLAG_IWMMXT; /* multimedia extension flags */
157 158

  
158 159
    if (avctx->dsp_mask) {
159
        if (avctx->dsp_mask & FF_MM_FORCE)
160
        if (avctx->dsp_mask & AV_CPU_FLAG_FORCE)
160 161
            mm_flags |= (avctx->dsp_mask & 0xffff);
161 162
        else
162 163
            mm_flags &= ~(avctx->dsp_mask & 0xffff);
163 164
    }
164 165

  
165
    if (!(mm_flags & FF_MM_IWMMXT)) return;
166
    if (!(mm_flags & AV_CPU_FLAG_IWMMXT)) return;
166 167

  
167 168
    c->add_pixels_clamped = add_pixels_clamped_iwmmxt;
168 169

  

Also available in: Unified diff