Mercurial > libavcodec.hg
comparison x86/dsputil_mmx.c @ 12475:9fef0a8ddd63 libavcodec
Move mm_support() from libavcodec to libavutil, make it a public
function and rename it to av_get_cpu_flags().
author | stefano |
---|---|
date | Wed, 08 Sep 2010 15:07:14 +0000 |
parents | a5ddb39627fd |
children |
comparison
equal
deleted
inserted
replaced
12474:cf54b8e98e7a | 12475:9fef0a8ddd63 |
---|---|
2521 | 2521 |
2522 float ff_scalarproduct_float_sse(const float *v1, const float *v2, int order); | 2522 float ff_scalarproduct_float_sse(const float *v1, const float *v2, int order); |
2523 | 2523 |
2524 void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx) | 2524 void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx) |
2525 { | 2525 { |
2526 int mm_flags = mm_support(); | 2526 int mm_flags = av_get_cpu_flags(); |
2527 | 2527 |
2528 if (avctx->dsp_mask) { | 2528 if (avctx->dsp_mask) { |
2529 if (avctx->dsp_mask & AV_CPU_FLAG_FORCE) | 2529 if (avctx->dsp_mask & AV_CPU_FLAG_FORCE) |
2530 mm_flags |= (avctx->dsp_mask & 0xffff); | 2530 mm_flags |= (avctx->dsp_mask & 0xffff); |
2531 else | 2531 else |