Mercurial > libavcodec.hg
comparison x86/mathops.h @ 10951:38b3b209b4bc libavcodec
Move COPY3_IF_LT to lavc/mathops.h
This obscure macro is only used in motion_est.c so having it in lavc
makes more sense. See discussion here:
http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2008-November/056561.html
author | mru |
---|---|
date | Wed, 20 Jan 2010 06:01:54 +0000 |
parents | 4cea2f47219a |
children | cd8a77473dd1 |
comparison
equal
deleted
inserted
replaced
10950:4776a56132e1 | 10951:38b3b209b4bc |
---|---|
64 ); | 64 ); |
65 return i; | 65 return i; |
66 } | 66 } |
67 #endif | 67 #endif |
68 | 68 |
69 #if HAVE_CMOV | |
70 #define COPY3_IF_LT(x, y, a, b, c, d)\ | |
71 __asm__ volatile(\ | |
72 "cmpl %0, %3 \n\t"\ | |
73 "cmovl %3, %0 \n\t"\ | |
74 "cmovl %4, %1 \n\t"\ | |
75 "cmovl %5, %2 \n\t"\ | |
76 : "+&r" (x), "+&r" (a), "+r" (c)\ | |
77 : "r" (y), "r" (b), "r" (d)\ | |
78 ); | |
79 #endif | |
80 | |
69 #endif /* AVCODEC_X86_MATHOPS_H */ | 81 #endif /* AVCODEC_X86_MATHOPS_H */ |