* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef MATHOPS_H
-#define MATHOPS_H
+#ifndef FFMPEG_MATHOPS_H
+#define FFMPEG_MATHOPS_H
-#ifdef ARCH_X86
+#include "common.h"
+
+#ifdef ARCH_X86_32
#include "i386/mathops.h"
#include "ppc/mathops.h"
+#elif defined(ARCH_BFIN)
+
+#include "bfin/mathops.h"
+
#endif
/* generic implementation */
//gcc 3.4 creates an incredibly bloated mess out of this
//# define MULH(a,b) (((int64_t)(a) * (int64_t)(b))>>32)
-static always_inline int MULH(int a, int b){
+static av_always_inline int MULH(int a, int b){
return ((int64_t)(a) * (int64_t)(b))>>32;
}
#endif
# define MUL16(ra, rb) ((ra) * (rb))
#endif
-#endif //MATHOPS_H
+#endif /* FFMPEG_MATHOPS_H */