Mercurial > libavutil.hg
comparison common.h @ 162:4154bbb6cbd1 libavutil
Avoid "HAVE_CMOV not defined" warning.
patch by Christophe Mutricy, xtophe nxtelevision com
author | diego |
---|---|
date | Sat, 13 Jan 2007 04:01:35 +0000 |
parents | 039198e96ee2 |
children | 54e4581f1c9d |
comparison
equal
deleted
inserted
replaced
161:3c1966537d5e | 162:4154bbb6cbd1 |
---|---|
118 } | 118 } |
119 | 119 |
120 /* median of 3 */ | 120 /* median of 3 */ |
121 static inline int mid_pred(int a, int b, int c) | 121 static inline int mid_pred(int a, int b, int c) |
122 { | 122 { |
123 #if HAVE_CMOV | 123 #ifdef HAVE_CMOV |
124 int i=b; | 124 int i=b; |
125 asm volatile( | 125 asm volatile( |
126 "cmp %2, %1 \n\t" | 126 "cmp %2, %1 \n\t" |
127 "cmovg %1, %0 \n\t" | 127 "cmovg %1, %0 \n\t" |
128 "cmovg %2, %1 \n\t" | 128 "cmovg %2, %1 \n\t" |