Mercurial > libavcodec.hg
comparison i386/mathops.h @ 5163:9ecbfc0c82bf libavcodec
add multiple inclusion guards to headers
author | mru |
---|---|
date | Sun, 17 Jun 2007 00:01:30 +0000 |
parents | c8c591fe26f8 |
children | 3fd46e281bd8 |
comparison
equal
deleted
inserted
replaced
5162:4394344397d8 | 5163:9ecbfc0c82bf |
---|---|
17 * You should have received a copy of the GNU Lesser General Public | 17 * You should have received a copy of the GNU Lesser General Public |
18 * License along with FFmpeg; if not, write to the Free Software | 18 * License along with FFmpeg; if not, write to the Free Software |
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
20 */ | 20 */ |
21 | 21 |
22 #ifndef AVCODEC_X86_MATHOPS_H | |
23 #define AVCODEC_X86_MATHOPS_H | |
24 | |
22 #ifdef FRAC_BITS | 25 #ifdef FRAC_BITS |
23 # define MULL(ra, rb) \ | 26 # define MULL(ra, rb) \ |
24 ({ int rt, dummy; asm (\ | 27 ({ int rt, dummy; asm (\ |
25 "imull %3 \n\t"\ | 28 "imull %3 \n\t"\ |
26 "shrdl %4, %%edx, %%eax \n\t"\ | 29 "shrdl %4, %%edx, %%eax \n\t"\ |
37 #define MUL64(ra, rb) \ | 40 #define MUL64(ra, rb) \ |
38 ({ int64_t rt;\ | 41 ({ int64_t rt;\ |
39 asm ("imull %2\n\t" : "=A"(rt) : "a" (ra), "g" (rb));\ | 42 asm ("imull %2\n\t" : "=A"(rt) : "a" (ra), "g" (rb));\ |
40 rt; }) | 43 rt; }) |
41 | 44 |
45 #endif |