Mercurial > libavcodec.hg
comparison ppc/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 |
|---|---|
| 18 * You should have received a copy of the GNU Lesser General Public | 18 * You should have received a copy of the GNU Lesser General Public |
| 19 * License along with FFmpeg; if not, write to the Free Software | 19 * License along with FFmpeg; if not, write to the Free Software |
| 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 */ | 21 */ |
| 22 | 22 |
| 23 #ifndef AVCODEC_PPC_MATHOPS_H | |
| 24 #define AVCODEC_PPC_MATHOPS_H | |
| 25 | |
| 23 #if defined(ARCH_POWERPC_405) | 26 #if defined(ARCH_POWERPC_405) |
| 24 /* signed 16x16 -> 32 multiply add accumulate */ | 27 /* signed 16x16 -> 32 multiply add accumulate */ |
| 25 # define MAC16(rt, ra, rb) \ | 28 # define MAC16(rt, ra, rb) \ |
| 26 asm ("maclhw %0, %2, %3" : "=r" (rt) : "0" (rt), "r" (ra), "r" (rb)); | 29 asm ("maclhw %0, %2, %3" : "=r" (rt) : "0" (rt), "r" (ra), "r" (rb)); |
| 27 | 30 |
| 29 # define MUL16(ra, rb) \ | 32 # define MUL16(ra, rb) \ |
| 30 ({ int __rt; | 33 ({ int __rt; |
| 31 asm ("mullhw %0, %1, %2" : "=r" (__rt) : "r" (ra), "r" (rb)); | 34 asm ("mullhw %0, %1, %2" : "=r" (__rt) : "r" (ra), "r" (rb)); |
| 32 __rt; }) | 35 __rt; }) |
| 33 #endif | 36 #endif |
| 37 | |
| 38 #endif |
