projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c14fe6b
)
dsputil_mmx: Honor HAVE_AMD3DNOW
author
Alex Converse
<alex.converse@gmail.com>
Sun, 14 Aug 2011 03:02:37 +0000
(20:02 -0700)
committer
Alex Converse
<alex.converse@gmail.com>
Mon, 15 Aug 2011 18:20:08 +0000
(11:20 -0700)
libavcodec/x86/dsputil_mmx.c
patch
|
blob
|
history
diff --git
a/libavcodec/x86/dsputil_mmx.c
b/libavcodec/x86/dsputil_mmx.c
index 0cd9601853393f361cd25d1132b8d830eecd8c86..2fb75cb5357657334333b6926921bad7a98551ee 100644
(file)
--- a/
libavcodec/x86/dsputil_mmx.c
+++ b/
libavcodec/x86/dsputil_mmx.c
@@
-2676,12
+2676,12
@@
void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx)
c->add_hfyu_median_prediction = ff_add_hfyu_median_prediction_mmx2;
#endif
#if HAVE_7REGS
c->add_hfyu_median_prediction = ff_add_hfyu_median_prediction_mmx2;
#endif
#if HAVE_7REGS
- if
( mm_flags&AV_CPU_FLAG_3DNOW
)
+ if
(HAVE_AMD3DNOW && (mm_flags & AV_CPU_FLAG_3DNOW)
)
c->add_hfyu_median_prediction = add_hfyu_median_prediction_cmov;
#endif
c->add_png_paeth_prediction= add_png_paeth_prediction_mmx2;
c->add_hfyu_median_prediction = add_hfyu_median_prediction_cmov;
#endif
c->add_png_paeth_prediction= add_png_paeth_prediction_mmx2;
- } else if (
mm_flags & AV_CPU_FLAG_3DNOW
) {
+ } else if (
HAVE_AMD3DNOW && (mm_flags & AV_CPU_FLAG_3DNOW)
) {
c->prefetch = prefetch_3dnow;
if (!high_bit_depth) {
c->prefetch = prefetch_3dnow;
if (!high_bit_depth) {
@@
-2833,11
+2833,11
@@
void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx)
}
#endif
}
#endif
- if
(mm_flags & AV_CPU_FLAG_3DNOW)
{
+ if
(HAVE_AMD3DNOW && (mm_flags & AV_CPU_FLAG_3DNOW))
{
c->vorbis_inverse_coupling = vorbis_inverse_coupling_3dnow;
c->vector_fmul = vector_fmul_3dnow;
}
c->vorbis_inverse_coupling = vorbis_inverse_coupling_3dnow;
c->vector_fmul = vector_fmul_3dnow;
}
- if
(mm_flags & AV_CPU_FLAG_3DNOWEXT)
{
+ if
(HAVE_AMD3DNOWEXT && (mm_flags & AV_CPU_FLAG_3DNOWEXT))
{
c->vector_fmul_reverse = vector_fmul_reverse_3dnow2;
#if HAVE_6REGS
c->vector_fmul_window = vector_fmul_window_3dnow2;
c->vector_fmul_reverse = vector_fmul_reverse_3dnow2;
#if HAVE_6REGS
c->vector_fmul_window = vector_fmul_window_3dnow2;
@@
-2868,7
+2868,7
@@
void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx)
c->scalarproduct_float = ff_scalarproduct_float_sse;
#endif
}
c->scalarproduct_float = ff_scalarproduct_float_sse;
#endif
}
- if
(mm_flags & AV_CPU_FLAG_3DNOW
)
+ if
(HAVE_AMD3DNOW && (mm_flags & AV_CPU_FLAG_3DNOW)
)
c->vector_fmul_add = vector_fmul_add_3dnow; // faster than sse
if(mm_flags & AV_CPU_FLAG_SSE2){
#if HAVE_YASM
c->vector_fmul_add = vector_fmul_add_3dnow; // faster than sse
if(mm_flags & AV_CPU_FLAG_SSE2){
#if HAVE_YASM