Mercurial > libavcodec.hg
comparison i386/mathops.h @ 7760:c4a4495715dd libavcodec
Globally rename the header inclusion guard names.
Consistently apply this rule: the guard name is obtained from the
filename by stripping the leading "lib", converting '/' and '.' to
'_' and uppercasing the resulting name. Guard names in the root
directory have to be prefixed by "FFMPEG_".
author | stefano |
---|---|
date | Sun, 31 Aug 2008 07:39:47 +0000 |
parents | 370c30bfd3a1 |
children | eebc7209c47f |
comparison
equal
deleted
inserted
replaced
7759:892ca48b7d76 | 7760:c4a4495715dd |
---|---|
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 FFMPEG_I386_MATHOPS_H | 22 #ifndef AVCODEC_I386_MATHOPS_H |
23 #define FFMPEG_I386_MATHOPS_H | 23 #define AVCODEC_I386_MATHOPS_H |
24 | 24 |
25 #ifdef FRAC_BITS | 25 #ifdef FRAC_BITS |
26 # define MULL(ra, rb) \ | 26 # define MULL(ra, rb) \ |
27 ({ int rt, dummy; asm (\ | 27 ({ int rt, dummy; asm (\ |
28 "imull %3 \n\t"\ | 28 "imull %3 \n\t"\ |
40 #define MUL64(ra, rb) \ | 40 #define MUL64(ra, rb) \ |
41 ({ int64_t rt;\ | 41 ({ int64_t rt;\ |
42 asm ("imull %2\n\t" : "=A"(rt) : "a" ((int)ra), "g" ((int)rb));\ | 42 asm ("imull %2\n\t" : "=A"(rt) : "a" ((int)ra), "g" ((int)rb));\ |
43 rt; }) | 43 rt; }) |
44 | 44 |
45 #endif /* FFMPEG_I386_MATHOPS_H */ | 45 #endif /* AVCODEC_I386_MATHOPS_H */ |